GetGlobalVarType – PB Docs 2022
GetGlobalVarType Description Obtains the datatype of a global variable. Syntax
1 |
GetGlobalVarType(pbfieldID fid) |
Argument Description fid The internal ID of the class instance variable Return value pbuint. A simple datatype defined in the list of pbvalue_type enumerated types. Examples This code tests getting and setting a global integer variable using the field ID fid:
1 2 3 4 5 6 |
fid = session -> GetGlobalVarID("i_gvar"); if (session -> GetGlobalVarType(fid) == pbvalue_int) { i_val=session -> GetIntGlobalVar(fid,isNull); session -> SetIntGlobalVar(fid,i_val+1); } |
See also…
PushLocalFrame – PB Docs 2022
PushLocalFrame Description Pushes a local reference frame onto the current native method stack frame. A local frame is analogous to a scope in C++. Syntax
1 |
PushLocalFrame() |
Return value None. See also PopLocalFrame RemoveLocalRef Document get from Powerbuilder help Thank you for watching.
SetValue – PB Docs 2022
SetValue Description Sets the value for the specified name/value pair. Note Starting from Version 2022, the PBDOM_PROCESSINGINSTRUCTION object is no longer supported to add and modify the XML declarations. Use the PBDOM_DOCUMENT SetXMLDeclaration method to set the XML declaration instead of using SetValue. Syntax
1 |
pbdom_pi_name.SetValue(string strName, stringstrValue) |
Argument Description pbdom_pi_name The name of a PBDOM_PROCESSINGINSTRUCTION object strName…
IsNativeObject – PB Docs 2022
IsNativeObject Description Determines whether a pbobject is an instance of a native class. Syntax
1 |
IsNativeObject(pbobject obj) |
Argument Description obj A valid object handle Return value pbboolean. Examples The f_getrow function uses IsNativeObject to test whether extObj is a native class. If so, it gets the native interface and invokes the f_getrowcount function in the other class:…
PBUnboundedObjectArrayCreator class – PB Docs 2022
PBUnboundedObjectArrayCreator class Contents GetArray SetAt Description The PBUnboundedObjectArrayCreator class is used to create an object array. Methods PBUnboundedObjectArrayCreator has two methods: GetArray SetAt Document get from Powerbuilder help Thank you for watching.
IPB_RSItemData interface – PB Docs 2022
IPB_RSItemData interface Contents SetData SetNull Description The IPB_RSItemData interface is used as an argument to the GetItemData function of IPB_ResultSetAccessor. Methods The IPB_RSItemData interface has two methods: SetData and SetNull. Document get from Powerbuilder help Thank you for watching.
Creating the C++ application – PB Docs 2022
Creating the C++ application Contents Load the PowerBuilder VM Call PB_GetVM to get a pointer to the IPB_VM interface Create an IPB_Session object within IPB_VM Create an instance of the PowerBuilder object Initialize the PBCallInfo structure Call the PowerBuilder function Write cleanup code To create the C++ application, follow these steps: Load the PowerBuilder VM…
GetEnumItemName – PB Docs 2022
GetEnumItemName Description Obtains the name of an enumerated variable. Syntax
1 |
GetEnumItemName(LPCTSTR enumName, long enumItemValue) |
Return value LPCTSTR. Usage When you have finished using the name, call the ReleaseString method to free the memory acquired. See also GetEnumItemValue ReleaseString Document get from Powerbuilder help Thank you for watching.
InvokeObjectFunction – PB Docs 2022
InvokeObjectFunction Description Invokes a class member method. Syntax
1 |
InvokeObjectFunction(pbobject obj, pbmethodID mid, PBCallInfo *ci) |
Argument Description obj The pbobject containing the method mid The pbMethodID returned by GetMethodID ci A pointer to a preallocated PBCallInfo structure Return value PBXRESULT. Returns PBX_OK for success, or one of the following for failure: PBX_E_INVALID_ARGUMENT PBX_E_INVOKE_METHOD_INACCESSABLE PBX_E_INVOKE_WRONG_NUM_ARGS PBX_E_INVOKE_REFARG_ERROR PBX_E_INVOKE_METHOD_AMBIGUOUS PBX_E_INVOKE_FAILURE PBX_E_INVOKE_FAILURE Examples This code…
GetDateTimeString – PB Docs 2022
GetDateTimeString Description Converts data in a pbdatetime object to a string. Syntax
1 |
GetDateTimeString(pbdatetime datetime) |
Argument Description datetime The pbdatetime data object to be converted to a string. Return value LPCTSTR. See also NewDateTime ReleaseDateTimeString SetDateTime Document get from Powerbuilder help Thank you for watching.