Loads the value of a parameter from a memory stream.
Call LoadFromStream to copy the contents of a memory stream into a parameter.
Stream is a reference to the memory stream from which to copy data.
DataType is the field data type the loaded data is to be treated as.
var MS: TMemoryStream; begin MS := TMemoryStream.Create; try ... fill memory stream with data ... ADOQuery1.Parameters.LoadFromStream(MS); finally if assigned(MS) then MS.Free; end; end;
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!