RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAdoDbxParameter.Size Property

Gets and sets the size of the parameter value in bytes.

Pascal
property Size: Integer;
C++
__property int Size;

Size is an Int32 type used for binary and string types. Size is ignored for fixed length data types. For Unicode, Size is the number of characters, not bytes. Size does not include any string terminating characters. 

Size and DbType can be inferred if Value is set, but they are not explicitly set by setting Value.

Warning: If a parameter's Direction is InputOutput
, Output, or ReturnValue, you must set Size.
Warning: If the size of a parameter's Value exceedsSize, Value data is truncated to Size.
 

 

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