Show: Delphi C++
Display Preferences

Data.DB.TParam.AsSmallInt

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property AsSmallInt: Integer read GetAsInteger write SetAsSmallInt;

C++

__property int AsSmallInt = {read=GetAsInteger, write=SetAsSmallInt, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Data.DB.pas
Data.DB.hpp
Data.DB TParam

Description

Specifies the value of the parameter when it represents a small integer field.

Set AsSmallInt to assign the value for a small integer field to the parameter. Setting AsSmallInt sets the DataType property to ftSmallint.

Read the AsSmallInt property to determine the value that was assigned to an output parameter, represented as an integer. The value of the parameter is converted to a LongInt value if possible.

Note: AsSmallInt works with a 32-bit integer. Small integer field objects store and manipulate their data as 32-bit integers even though the values in the underlying database are 16-bit integers.

See Also

Code Examples


Personal tools
In Other Languages
Previous Versions
Assistance