Data.DBXDelegate.TDBXDelegateWritableValue.GetUInt16
[–] Properties | |
---|---|
Type: function | |
Visibility: public | |
Source: Data.DBXDelegate.pas Data.DBXDelegate.hpp
| |
Unit: Data.DBXDelegate | |
Parent: TDBXDelegateWritableValue |
Delphi
function GetUInt16: Word; overload; override;
function GetUInt16(defaultValue: Word): Word; overload; override;
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.
Data.DBXDelegate.TDBXDelegateWritableValue.GetUInt16 inherits from Data.DBXCommon.TDBXValue.GetUInt16. All content below this line refers to Data.DBXCommon.TDBXValue.GetUInt16.
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.