Data.DBXCommon.TDBXValue.GetUInt16
Delphi
function GetUInt16: Word; overload; virtual;
function GetUInt16(defaultValue: Word): Word; overload; virtual;
C++
virtual System::Word __fastcall GetUInt16()/* overload */;
virtual System::Word __fastcall GetUInt16(System::Word defaultValue)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Data.DBXCommon.pas Data.DBXCommon.hpp |
Data.DBXCommon | TDBXValue |
Description
Gets the Word value for an unsigned 16-bit integer value type.
GetUInt16 gets the Word value for TDBXValue descendants that store a Word. The overload, which takes a defaultValue
parameter, will return defaultValue
if the IsNull check returns True. For TDBXValue descendants that do not store a Word, an exception will be raised. It is recommended that AsUInt16 be used to take advantage of the built-in type coercion of the As methods.