Data.DBXDelegate.TDBXDelegateWritableValue.GetUInt16

From RAD Studio API Documentation

Delphi

function GetUInt16: Word; overload; override;
function GetUInt16(defaultValue: Word): Word; overload; override;

C++

virtual System::Word __fastcall GetUInt16(void)/* overload */;
virtual System::Word __fastcall GetUInt16(System::Word defaultValue)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
Data.DBXDelegate.pas
Data.DBXDelegate.hpp
Data.DBXDelegate TDBXDelegateWritableValue

Description

Gets the Word value for an unsigned 16-bit integer value type. {{#multireplace:Data.DBXDelegate.TDBXDelegateWritableValue.GetUInt16|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:Data.DBXCommon.TDBXValue.GetUInt16|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:Data.DBXCommon.TDBXValue.GetUInt16|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.

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.


See Also