RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TParam.LoadFromFile Method

Loads the value of a BLOB parameter from the specified file.

Pascal
procedure LoadFromFile(const FileName: string; BlobType: TBlobType);
C++
__fastcall LoadFromFile(const AnsiString FileName, TBlobType BlobType);

Use LoadFromFile to set the value of a BLOB parameter from a value stored in the file specified by the FileName parameter. The DataType property is set to the value passed as the BlobType parameter.

Query2.ParamByName('Notes').LoadFromFile('c:\Files\Note1234.txt', ftMemo);

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!