Set<type>SharedVar – PB Docs 125
IPB_Session interface: Set<type>SharedVar method Description A set of methods that set the value of a shared variable of a specific datatype. Syntax
|
1 |
SetArraySharedVar ( pbgroup <span>group</span>, pbfieldID <span>fid</span>, pbarray <span>value</span> ) |
|
1 |
SetBlobSharedVar ( pbgroup <span>group</span>, pbfieldID <span>fid</span>, pbblob <span>value</span> ) |
|
1 |
SetBoolSharedVar ( pbgroup <span>group</span>, pbfieldID <span>fid</span>, pbboolean <span>value</span> ) |
|
1 |
SetByteSharedVar ( pbgroup <span>group</span>, pbfieldID <span>fid</span>, pbbyte <span>value</span> ) |
|
1 |
SetCharSharedVar ( pbgroup <span>group</span>, pbfieldID <span>fid</span>, pbchar <span>value</span> ) |
|
1 |
SetDateSharedVar ( pbgroup <span>group</span>, pbfieldID <span>fid</span>, pbdate <span>value</span> ) |
|
1 |
SetDateTimeSharedVar ( pbgroup <span>group</span>, pbfieldID <span>fid</span>, pbdatetime <span>value</span> ) |
|
1 |
SetDecSharedVar ( pbgroup <span>group</span>, pbfieldID <span>fid</span>, pbdec <span>value</span> ) |
|
1 |
SetDoubleSharedVar ( pbgroup <span>group</span>, pbfieldID <span>fid</span>, pbdouble <span>value</span> ) |
|
1 |
SetIntSharedVar ( pbgroup <span>group</span>, pbfieldID <span>fid</span>, pbint <span>value</span> ) |
|
1 |
SetLongSharedVar( pbgroup <span>group</span>, pbfieldID <span>fid</span>, pblong <span>value</span> ) |
|
1 |
SetLongLongSharedVar( pbgroup <span>group</span>, pbfieldID <span>fid</span>, pblonglong <span>value</span> ) |
|
1 |
SetObjectSharedVar ( pbgroup <span>group</span>, pbfieldID <span>fid</span>, pbobject <span>value</span> ) |
|
1 |
SetPBStringSharedVar ( pbgroup <span>group</span>, pbfieldID <span>fid</span>, pbstring <span>value</span> ) |
|
1 |
SetRealSharedVar ( pbgroup <span>group</span>, pbfieldID <span>fid</span>, pbreal <span>value</span> ) |
|
1 |
SetStringSharedVar ( pbgroup <span>group</span>, pbfieldID <span>fid</span>, LPCTSTR <span>value</span> ) |
|
1 |
SetTimeSharedVar ( pbgroup <span>group</span>, pbfieldID <span>fid</span>, pbtime <span>value</span> ) |
|
1 |
SetUintSharedVar ( pbgroup <span>group</span>, pbfieldID <span>fid</span>, pbuint <span>value</span> ) |
|
1 |
SetUlongSharedVar ( pbgroup <span>group</span>, pbfieldID <span>fid</span>, pbulong <span>value</span> ) |
Argument Description group The group whose shared variable is to be accessed fid The field ID of the shared variable value The value to be set Return Values PBX_RESULT. See Also Get<type>SharedVar…
SetTime – PB Docs 125
IPB_Session interface: SetTime method Description Resets the value of the specified pbtime object. Syntax
|
1 |
SetTime (pbtime <span>time</span>, pbint <span>hour</span>, pbint <span>minute</span>, pbdouble <span>second</span>) |
Argument Description time The pbtime object to be reset hour An hour in the range 0 to 23 minute A minute in the range 0 to 59 second A second in the range 0 to 59.999999 Return Values PBX_RESULT. PBX_OK…
GetMarshaler – PB Docs 125
IPB_Session interface: GetMarshaler method Description Obtains the marshaler object associated with a proxy object. Syntax
|
1 |
GetMarshaler(pbproxyObject <span>obj</span>) |
Argument Description obj An object of type pbproxyObject for which you want to find the marshaler. Return Values IPBX_Marshaler*. Examples This code creates a Java marshaler object and associates it with a proxy. Later, GetMarshaler is used to get…
FreeCallInfo – PB Docs 125
IPB_Session interface: FreeCallInfo method Description Frees memory allocated by InitCallInfo. Syntax
|
1 |
FreeCallInfo(PBCallInfo *<span>ci</span>) |
Argument Description ci A pointer to the preallocated PBCallInfo structure Return Values None. Examples FreeCallInfo should be called when the PBCallInfo structure is no longer needed:
|
1 |
Session->InvokeObjectFunction(myobj, mid, ci);<br> <br>ret_val = ci.returnValue-> GetInt();<br>Session-> <span>FreeCallInfo</span>(ci);<br>delete ci;<br>return ret_val; |
Usage This method frees memory allocated by InitCallInfo but does not free the structure ci itself….
GetClass – PB Docs 125
IPB_Session interface: GetClass method Description Returns the class handle of a PowerBuilder object. This function is most frequently used to obtain a class handle for use with the GetMethodID function. Syntax
|
1 |
GetClass (pbobject <span> obj</span>) |
Argument Description obj A valid PowerBuilder object handle Return Values pbclass or null on error. Examples In this example, GetClass is used to…
NewTime – PB Docs 125
IPB_Session interface: NewTime method Description Creates a new pbtime data object. Syntax
|
1 |
NewTime() |
Return Values pbtime. Examples These statements split a time into hours, minutes, and seconds, and then use the resulting values to set the value of a new time object:
|
1 |
Session->SplitTime(ci.returnValue->GetTime(), &hh,<br>   &mm, &ss);<br>ret_val = Session-> <span>NewTime</span>();<br>Session-> SetTime(ret_val, hh, mm, ss); |
Usage The initial value is 0:0:0.0. See Also SetTime SplitTime Document get…
ReleaseDecimalString – PB Docs 125
IPB_Session interface: ReleaseDecimalString method Description Frees the memory acquired using GetDecimalString. Syntax
|
1 |
ReleaseDecimalString(LPCTSTR <span>string</span>) |
Argument Description string The string to be released from memory Return Values None. See Also GetDecimalString Document get from Powerbuilder help Thank you for watching.
IsFieldArray – PB Docs 125
IPB_Session interface: IsFieldArray method Description Returns true if the field of the specified object is an array; otherwise it returns false. Syntax
|
1 |
IsFieldArray(pbclass <span>cls</span>, pbfield <span>fid</span>) |
Argument Description cls A valid class handle for the class whose field is to be accessed fid The field ID of the specified object Return Values pbboolean. Examples This code tests whether…
RadioButton edit style (code 86) – PB Docs 125
RadioButton edit style (code 86) Table A-10 shows a sample row in the PBCatEdt table for a RadioButton edit style. Table A-11 shows the meaning of the values in Table A-10. Table A-10: Sample row in PBCatEdt for a RadioButton edit style Name Edit Type Cntr Seqn Flag Work MyEdit Columns 86 1 1 Flag…
About OrcaScript – PB Docs 125
About OrcaScript OrcaScript allows you to write batch scripts to process PowerBuilder applications and files without using the PowerBuilder development environment. You can use OrcaScript to get the latest version of a target from source control, build the target PBLs, deploy components to EAServer, and compile PowerBuilder executable files—all without operator intervention. Using OrcaScript with…