FromVariant(Value: Variant): IIOStream;
Value. Value that must be loaded to the stream.
The FromVariant method creates a stream and writes data passed by the Value parameter into it.
Objects inherited from IIOStream can be passed as a value of the Value parameter.
FromVariant is also used to work with data source fields that have custom data type. To get field values, specify the value in the Value parameter that was obtained in the IDatasetInstanceField.Value or IDalCursorField.Value property. In this case field data is loaded to the stream.
NOTE. On working with some DBMS, if a stream is based on the field obtained from the cursor, stream size may be displayed incorrectly. To get the correct value, create a stream in the memory and copy the current stream data to it.
See also: