Data.DBXCommon.TDBXValue.GetUInt16
[–] Properties | |
---|---|
Type: function | |
Visibility: public | |
Source: Data.DBXCommon.pas Data.DBXCommon.hpp
| |
Unit: Data.DBXCommon | |
Parent: TDBXValue |
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 */;
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.