API:Data.DBXCommon.TDBXUInt16Value.GetUInt16
Delphi
function GetUInt16: Word; override;
C++
virtual System::Word __fastcall GetUInt16()/* overload */;
inline System::Word __fastcall GetUInt16(System::Word defaultValue){ return TDBXValue::GetUInt16(defaultValue); }
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | Data.DBXCommon.pas Data.DBXCommon.hpp |
Data.DBXCommon | TDBXUInt16Value |
Description
Gets the Word value for an unsigned 16-bit integer value type.
Data.DBXCommon.TDBXUInt16Value.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.