IPB_Session interface
Description
The IPB_Session interface is used to interoperate with PowerBuilder. An abstract interface, it defines methods for accessing PowerScript data, calling PowerScript functions, catching and throwing PowerScript exceptions, and setting a marshaler to convert PowerBuilder data formats to the user's communication protocol.
Methods
This table lists functions by category. Full descriptions in alphabetic order follow the table.
Purpose |
Method |
Description |
---|---|---|
Managing sessions |
Releases this IPB session. The IPB_Session object becomes invalid after the call. |
|
Managing object references |
Adds a global reference to the specified PowerBuilder object. |
|
Adds a local reference to the specified PowerBuilder object. |
||
Creates a new object of the specified type. |
||
Pops the current local reference frame from the current native method stack frame. |
||
Pushes a local reference frame onto the current native method stack frame. |
||
Removes a global reference to the specified PowerBuilder object. |
||
Removes a local reference to the specified PowerBuilder object. |
||
Managing shared properties |
Retrieves a pointer to the data value of a variable that has been registered as a shared property for the current IPB session. |
|
Removes the specified variable from the list of properties of the current IPB session. |
||
Adds a new variable to the list of properties of the current session or changes the value of an existing variable. |
||
Handling the PowerBuilder message queue |
Checks the PowerBuilder message queue and, if there is a message in the queue, attempts to process it. |
|
Handling exceptions |
Clears the current PowerBuilder exception object. |
|
Obtains the current thrown exception object. |
||
Checks for the existence of an exception that has been thrown but not cleared. |
||
Throws a PowerBuilder exception or inherited exception, replacing the existing exception if one exists. |
||
Passing arguments |
Adds an argument in a variable argument PowerBuilder call. |
|
Frees memory allocated by InitCallInfo. |
||
Initializes the PBCallInfo structure. |
||
Finding PowerBuilder classes and objects |
Searches for a group with a given name and group type in the current library list. |
|
Searches for a class with a given name within a given group. |
||
Searches for a class with a given name and a given ID. |
||
Returns the class handle of a PowerBuilder object. |
||
Returns the name of a class in lowercase. |
||
Returns the name of the current group. |
||
Returns the base class of a class, if any. |
||
Returns the system class handle of a PowerBuilder object. |
||
Returns the class that contains all the system global functions. |
||
Returns true if the specified class is an autoinstantiated class; otherwise returns false. |
||
Working with functions and events |
Finds a function that has the specified argument list. |
|
Returns the ID of the requested function. |
||
Returns the ID of the function that has a given predefined PowerBuilder event ID. |
||
Invokes system or user global functions. |
||
Invokes a class member function. |
||
Triggers a PowerBuilder event. |
||
Working with enumerated variables |
Obtains the name of an enumerated variable. |
|
Obtains the value of an enumerated variable. |
||
Working with global variables |
Returns the name of a global variable. |
|
Returns the datatype of a global variable. |
||
Returns the value of a global variable of a specific datatype. |
||
Obtains the value of a global variable of type Any. |
||
Returns true if the global variable contains an array, otherwise returns false. |
||
Returns true if the global variable contains a null value, otherwise returns false. |
||
Returns true if the global variable contains a pbobject, otherwise returns false. |
||
Sets the value of a global variable of a specific datatype. |
||
Sets the value of a shared variable to null. |
||
Working with shared variables |
Returns the name of a shared variable. |
|
Returns the datatype of a shared variable. |
||
Returns the value of a shared variable of a specific datatype. |
||
Obtains the value of a shared variable of type Any. |
||
Returns true if the shared variable contains an array, otherwise returns false. |
||
Returns true if the shared variable contains a null value, otherwise returns false. |
||
Returns true if the shared variable contains a pbobject, otherwise returns false. |
||
Sets the value of a shared variable of a specific datatype. |
||
Sets the value of a shared variable to null. |
||
Working with arrays |
Returns the value of an array item of a specific datatype. |
|
Obtains information about an array. |
||
Obtains the datatype of an item in an array. |
||
Returns the length of an array. |
||
Obtains the value of an array item of type Any. |
||
Returns true if the array item contains an array, otherwise returns false. |
||
Creates a bounded simple data array. |
||
Creates an unbounded simple data array. |
||
Creates a bounded PowerBuilder object or structure array. |
||
Creates an unbounded PowerBuilder object or structure data array. |
||
Releases memory returned by GetArrayInfo. |
||
Sets the value of an array item of a specific datatype. |
||
Sets the value of an array item to null. |
||
Working with strings |
Returns the length of a string in bytes without the terminator. |
|
Returns a pointer to the string passed in as an argument. |
||
Creates a new string. |
||
Releases the memory used by a string. |
||
Frees an existing string and assigns a new string value to it. |
||
Working with binary large objects |
Returns a pointer to the data buffer for a blob. |
|
Returns the length in bytes of blob data in a buffer. |
||
Creates a new blob and duplicates a buffer for the new blob data. |
||
Destroys the existing data in a blob and copies data into it from a buffer. |
||
Working with decimal values |
Converts decimal data in a pbdec object to a string. |
|
Allocates resources for a new decimal data object. |
||
Frees the memory acquired using GetDecimalString. |
||
Converts a string to a decimal. |
||
Working with date and time values |
Converts data in a pbdate object to a string. |
|
Converts data in a pbdatetime object to a string. |
||
Converts data in a pbtime object to a string. |
||
Creates a new pbdate data object. |
||
Creates a new pbdatetime data object. |
||
Creates a new pbtime data object. |
||
Frees the memory acquired using GetDateString. |
||
Frees the memory acquired using GetDateTimeString. |
||
Frees the memory acquired using GetTimeString. |
||
Resets the value of the specified pbdate object. |
||
Resets the value of the specified pbdatetime object. |
||
Resets the value of the specified pbtime object. |
||
Splits the specified pbdate object into a year, month, and day. |
||
Splits the specified pbdatetime object into a year, month, and day. |
||
Splits the specified pbtime object into a year, month, and day. |
||
Working with data values |
Clones the data in the PBCallInfo structure in an array item and resets the IPB_Value pointer. |
|
Clones the data in the PBCallInfo structure and resets the IPB_Value pointer. |
||
Frees the value acquired by the AcquireValue or AcquireArrayItemValue method. |
||
Sets the value of one IPB_Value object to the value of another IPB_Value object |
||
Working with fields |
Obtains the internal ID of a class instance variable. |
|
Obtains the name of the specified field. |
||
Obtains the datatype of a class instance variable. |
||
Obtains the number of fields in the specified class. |
||
Obtains the value of a variable of type Any. |
||
Obtains a pointer to the instance variable data for a specified variable. |
||
Returns true if the field contains an array, otherwise returns false. |
||
Returns true if the field contains a null value array, otherwise returns false. |
||
Returns true if the field contains a pbobject, otherwise returns false. |
||
A set of datatype-specific functions. Sets the value of an instance field of an object. |
||
A set of datatype-specific functions. Sets the value of an instance field of an object. |
||
Refreshes a visual property of a PowerBuilder object. |
||
Working with native classes |
Obtains a pointer to the interface of a native class. |
|
Determines whether a pbobject is an instance of a native class. |
||
Accessing result sets from DataWindows and DataStores |
Creates a result set object using a pointer to an IPB_ResultSetAccessor object. |
|
Obtains an interface through which you can read data from a result set. |
||
Releases the pointer obtained using GetResultSetAccessor. |
||
Working with marshaler extensions |
Obtains the marshaler object associated with a proxy object. |
|
Creates a proxy for a remote object. |
||
Sets a marshaler that will be used to invoke remote methods and convert PowerBuilder data formats to the user's communication protocol. |