RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSQLMonitor.LoadFromFile Method

Sets the contents of TraceList to the strings contained in a file.

Pascal
procedure LoadFromFile(AFileName: string);
C++
__fastcall LoadFromFile(AnsiString AFileName);

Call LoadFromFile to initialize the message log with the contents of a file. This method can be used to start the log with standard header information you have saved in a file, or to pre-load the list with a log you saved previously using the SaveToFile method. 

AFileName is the file from which to load the contents of the message log. If AFileName is an empty string, LoadFromFile uses the value of the FileName property.

Note: Any information currently in TraceList is lost when you call LoadFromFile.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!