IsGlobalVarArray – PB Docs 2022
IsGlobalVarArray Description Returns true if the global variable contains an array; otherwise it returns false. Syntax
1 |
IsGlobalVarArray(pbfield fid) |
Argument Description fid The field ID of the global variable Return value pbboolean. Examples These statements test whether the field identified by fid is a global variable array:
1 2 3 4 5 |
fid = session -> GetGlobalVarID("arr_gvar"); if (session -> IsGlobalVarArray(fid)) { arr_val=session -> GetArrayGlobalVar(fid, isNull); ... |
See also GetGlobalVarID GetGlobalVarType Get<type>GlobalVar IsGlobalVarNull IsGlobalVarObject SetGlobalVarToNull Set<type>GlobalVar…
NewBoundedObjectArray – PB Docs 2022
NewBoundedObjectArray Description Creates a bounded PowerBuilder object or structure array. Syntax
1 |
NewBoundedObjectArray(pbclass cls, pbuint dimension, PBArrayInfo::ArrayBound* bounds) |
Argument Description cls A valid class handle of the type of PowerBuilder object or structure array to be created dimension A number greater than one that indicates the dimension of the array to be created bounds An array containing the upper and lower…
The PBNI SDK – PB Docs 2022
The PBNI SDK When you install PowerBuilder, the Software Development Kit (SDK) for PBNI is installed in the %AppeonInstallPath%PowerBuilder [version]SDKPBNI directory. The SDK tools, pbsig220 and pbx2pbd220, are also installed in the %AppeonInstallPath%PowerBuilder [version]IDE directory so that they are available in your path. The SDK contains the components shown in the following table. Component Description…
GetArrayInfo – PB Docs 2022
GetArrayInfo Description Obtains information about an array. Syntax
1 |
GetArrayInfo(pbarray array) |
Argument Description array A valid array handle Return value PBArrayInfo*. Examples This IF-ELSE statement populates a PBArrayInfo structure if the array in the first value of a PBCallInfo structure is not null:
1 2 3 4 5 6 7 8 9 10 11 |
if ( !(ci->pArgs->GetAt(0)->IsNull()) ) { array = ci->pArgs->GetAt(0)->GetArray(); pArrayInfo = session->GetArrayInfo (array); pArrayItemCount = session->GetArrayLength(array); } else { // NULL array pArrayItemCount = 0; } |
Usage If the array is an unbounded array, the bounds information in PBArrayInfo…
NewDate – PB Docs 2022
NewDate Description Creates a new pbdate data object. Syntax
1 |
NewDate() |
Return value pbdate. Examples This example tests whether a date value exists, and, if it does not, it creates a new pbdate object and sets its value to the first day in January, 1900:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
if (ci->pArgs->GetAt(0)->IsNull()) { pArguments[i].date_val = Session->NewDate(); Session->SetDate(pArguments[i].date_val, 1900,1,1); // Date: 1900-01-01 isNull[i]=true; } else { pArguments[i].date_val = ci->pArgs->GetAt(i)->GetDate(); isNull[i]=false; } |
Usage The initial value is 1900-1-1. See also SetDate SplitDate…
IPB_Arguments interface – PB Docs 2022
IPB_Arguments interface The IPB_Arguments interface has two methods: GetCount obtains the number of arguments in a method call. GetAt obtains the value at a specific index of the pArgs member of the PBCallInfo structure. For each argument, GetAt returns a pointer to the IPB_Value interface. The following code fragment uses GetCount and GetAt in a…
ReleaseDateTimeString – PB Docs 2022
ReleaseDateTimeString Description Frees the memory acquired using GetDateTimeString. Syntax
1 |
ReleaseDateTimeString(LPCTSTR string) |
Argument Description string The string to be released from memory Return value None. See also GetDateTimeString Document get from Powerbuilder help Thank you for watching.
pbsig220 – PB Docs 2022
pbsig220 Description The PowerBuilder function signature is the internal signature of a PowerBuilder function that is used to identify polymorphisms functions in a class. The pbsig220 tool obtains these function signatures from a PBL. Inherited functions You can also obtain a signature by selecting the function in the System Tree or Browser and selecting Properties…
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…
SetMarshaler – PB Docs 2022
SetMarshaler Description Sets a marshaler that will be used to invoke remote methods and convert PowerBuilder data formats to the user’s communication protocol. Syntax
1 |
SetMarshaler(pbproxyObject obj, IPBX_Marshaler* marshaler) |
Argument Description obj An object of type pbproxyObject to be used as a proxy for a remote object that was created using NewProxyObject marshaler A class inherited from IPBX_Marshaler Return…