Print Page | Close Window

Logging Array

Printed From: TMS Software
Category: Developer Tools
Forum Name: DEV Logging
Forum Discription:
URL: http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=12947
Printed Date: 17 Jul 2019 at 1:09am


Topic: Logging Array
Posted By: Anske Schaap
Subject: Logging Array
Date Posted: 31 Jan 2019 at 10:53am
Can I send a array of byte to the logging output and if yes, how?



Replies:
Posted By: Pieter Scheldeman
Date Posted: 31 Jan 2019 at 2:17pm
Hi,

Logging an array can be done with the following code, and by adding the RTTI unit to the uses list:

const
  b: TBytes = [0, 1, 2, 3, 4, 5];
begin
  TMSLogger.Info(TValue.From(b));
end;




Print Page | Close Window