Data.DB.TParam.AsWord

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property AsWord: LongInt read GetAsInteger write SetAsWord;

C++

__property int AsWord = {read=GetAsInteger, write=SetAsWord, 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 word field.

Set AsWord to assign the value for a word field to the parameter. Setting AsWord sets the DataType property to ftWord.

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

Note: AsWord works with an integer. Word field objects store and manipulate their data as 32-bit integers even though the values in the underlying database are unsigned 16-bit values.

See Also

Code Examples