Get<type>

PowerBuilder Native Interface

IPB_Value interface:

Get<type> method

Description

A set of datatype-specific methods that return a pointer to the data in IPB_Value.

Syntax

GetArray ( ) 
GetBlob( ) 
GetBool ( ) 
GetByte ( ) 
GetChar ( ) 
GetDate ( ) 
GetDateTime( ) 
GetDecimal ( ) 
GetDouble ( ) 
GetInt ( ) 
GetLong( ) 
GetLongLong( ) 
GetObject ( ) 
GetReal( ) 
GetString ( ) 
GetTime( ) 
GetUint( ) 
GetUlong ( ) 

Return Values

A predefined PBNI datatype that corresponds to the PowerBuilder datatype in the method name.

Examples

This statement gets the date in the first value in the PBCallInfo structure and splits it into year, month, and day:

Session -> SplitDate(ci-> pArgs -> GetAt(0) ->
   GetDate(),&yy,&mm,&dd);

Usage

If IPB_Value contains a null value, or if you are trying to get a specific datatype from an IPB_Value instance of another datatype, the data retrieved is undetermined. If the datatype is string, blob, decimal, time, date, datetime, array, or object, the return value points to the same address pointed to by IPB_Value. As a result, changing either the variable that holds the return value or the value of the IPB_Value instance affects the other.

See Also

Set<type>