GetType – PB Docs 2022
GetType Description Returns the datatype of a single data item or array. Syntax
1 |
GetType() |
Return value pbuint Examples
1 2 3 4 5 6 7 8 9 10 11 |
ArgsType = ci->pArgs->GetAt(i)->GetType(); switch (ArgsType) { case pbvalue_int: if (ci->pArgs->GetAt(i)->IsNull()) pArguments[i].int_val=1; else pArguments[i].int_val = ci->pArgs->GetAt(i)->GetInt(); break; ... |
Usage If the IPB_Value instance contains an object or structure, GetType returns the class ID of the data. Otherwise, it returns a simple datatype defined in the list of pbvalue_type enumerated types. See also Get<type> GetClass…
IsAutoInstantiate – PB Docs 2022
IsAutoInstantiate Description Returns true if the specified class is an autoinstantiated class; otherwise it returns false. Syntax
1 |
IsAutoInstantiate(pbclass) |
Argument Description cls A valid class handle or structure Return value pbboolean. Document get from Powerbuilder help Thank you for watching.
IPBX_Marshaler interface – PB Docs 2022
IPBX_Marshaler interface Contents Destroy GetModuleHandle InvokeRemoteMethod Description The IPBX_Marshaler interface is used to invoke remote methods and convert PowerBuilder data formats to the user’s communication protocol. A marshaler extension is a PowerBuilder extension that acts as the bridge between PowerBuilder and other components, such as CORBA objects etc. Methods Method Description Destroy Destroys an instance…
NewDecimal – PB Docs 2022
NewDecimal Description Allocates resources for a new decimal data object. Syntax
1 |
NewDecimal( ) |
Return value pbdec or null on failure. Examples
1 2 3 4 5 6 7 |
if (ci->pArgs->GetAt(i)->IsNull()) { pArguments[i].dec_val=Session->NewDecimal(); Session->SetDecimal(pArguments[i].dec_val,"1.0"); } else pArguments[i].dec_val = ci->pArgs->GetAt(i)->GetDecimal(); |
See also GetDecimalString ReleaseDecimalString SetDecimal Document get from Powerbuilder help Thank you for watching.
SetGlobalVarToNull – PB Docs 2022
SetGlobalVarToNull Description Sets the value of the specified global variable to null. Syntax
1 |
SetGlobalVarToNull(pbobject obj, pbfield fid) |
Argument Description fid The field ID of the global variable Return value None. See also GetGlobalVarID GetGlobalVarType Get<type>GlobalVar IsGlobalVarArray IsGlobalVarNull IsGlobalVarObject Set<type>GlobalVar Document get from Powerbuilder help Thank you for watching.
GetSystemClass – PB Docs 2022
GetSystemClass Description Returns the first system class that the input class inherits from. Syntax
1 |
GetSystemClass (pbclass cls) |
Argument Description cls A descendant class whose ancestor system class is to be determined Return value pbclass or null on error. See also GetMethodID GetSystemGroup Document get from Powerbuilder help Thank you for watching.
SetDate – PB Docs 2022
SetDate Description Resets the value of the specified pbdate object. Syntax
1 |
SetDate (pbdate date, pbint year, pbint month, pbint day) |
Argument Description date The pbdate object to be reset year A year in the range 1000 to 3000 month A month in the range 1 to 12 day A day in the range 1 to 31 Return value PBX_RESULT. PBX_OK for success or…
GetStringLength – PB Docs 2022
GetStringLength Description Returns the length of a string in bytes without the terminator. Syntax
1 |
GetStringLength (pbstring string) |
Argument Description string The pbstring whose length is to be determined Return value pblong. Examples These statements set the value of a pblong variable to the length of a string:
1 2 3 |
pblong long_val; pbstring str_val; long_val = session-> GetStringLength( str_val ); |
See also GetString NewString SetString Document get from Powerbuilder…
Using the extension – PB Docs 2022
Using the extension Using nonvisual classes In PowerScript, use the classes in a nonvisual extension just as you would a custom class user object: Declare an instance of the object, use the CREATE statement to create the instance, invoke the object’s functions, and destroy the instance when you have finished with it. You can inherit…
ReleaseTimeString – PB Docs 2022
ReleaseTimeString Description Frees the memory acquired using GetString. Syntax
1 |
ReleaseTimeString(LPCTSTR string) |
Argument Description string The string to be released from memory Return value None. See also GetTimeString Document get from Powerbuilder help Thank you for watching.