IPB_Session
interface
Contents
- AcquireArrayItemValue
- AcquireValue
- Add<type>Argument
- AddGlobalRef
- AddLocalRef
- ClearException
- CreateResultSet
- FindClass
- FindClassByClassID
- FindGroup
- FindMatchingFunction
- FreeCallInfo
- Get<type>ArrayItem
- Get<type>Field
- Get<type>GlobalVar
- Get<type>SharedVar
- GetArrayInfo
- GetArrayItemType
- GetArrayLength
- GetBlob
- GetBlobLength
- GetClass
- GetClassName
- GetCurrGroup
- GetDateString
- GetDateTimeString
- GetDecimalString
- GetEnumItemName
- GetEnumItemValue
- GetException
- GetFieldID
- GetFieldName
- GetFieldType
- GetGlobalVarID
- GetGlobalVarType
- GetMarshaler
- GetMethodID
- GetMethodIDByEventID
- GetNativeInterface
- GetNumOfFields
- GetPBAnyArrayItem
- GetPBAnyField
- GetPBAnyGlobalVar
- GetPBAnySharedVar
- GetProp
- GetResultSetAccessor
- GetSharedVarID
- GetSharedVarType
- GetString
- GetStringLength
- GetSuperClass
- GetSystemClass
- GetSystemGroup
- GetTimeString
- HasExceptionThrown
- HasPBVisualObject
- InitCallInfo
- InvokeClassFunction
- InvokeObjectFunction
- IsArrayItemNull
- IsAutoInstantiate
- IsFieldArray
- IsFieldNull
- IsFieldObject
- IsGlobalVarArray
- IsGlobalVarNull
- IsGlobalVarObject
- IsNativeObject
- IsSharedVarArray
- IsSharedVarNull
- IsSharedVarObject
- NewBlob
- NewBoundedObjectArray
- NewBoundedSimpleArray
- NewDate
- NewDateTime
- NewDecimal
- NewObject
- NewProxyObject
- NewString
- NewTime
- NewUnboundedObjectArray
- NewUnboundedSimpleArray
- PopLocalFrame
- ProcessPBMessage
- PushLocalFrame
- Release
- ReleaseArrayInfo
- ReleaseDateString
- ReleaseDateTimeString
- ReleaseDecimalString
- ReleaseResultSetAccessor
- ReleaseString
- ReleaseTimeString
- ReleaseValue
- RemoveGlobalRef
- RemoveLocalRef
- RemoveProp
- RestartRequested
- Set<type>ArrayItem
- Set<type>Field
- Set<type>GlobalVar
- Set<type>SharedVar
- SetArrayItemToNull
- SetArrayItemValue
- SetBlob
- SetDate
- SetDateTime
- SetDecimal
- SetFieldToNull
- SetGlobalVarToNull
- SetMarshaler
- SetProp
- SetSharedVarToNull
- SetString
- SetTime
- SetValue
- SplitDate
- SplitDateTime
- SplitTime
- ThrowException
- TriggerEvent
- UpdateField
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 |
|
|
Managing object references |
Adds a global reference to the specified PowerBuilder |
|
|
Adds a local reference to the specified PowerBuilder |
||
|
Creates a new object of the specified |
||
|
Pops the current local reference frame from the |
||
|
Pushes a local reference frame onto the current |
||
|
Removes a global reference to the specified |
||
|
Removes a local reference to the specified |
||
|
Managing shared properties |
Retrieves a pointer to the data value of a variable |
|
|
Removes the specified variable from the list of |
||
|
Adds a new variable to the list of properties of the |
||
|
Handling the PowerBuilder message |
Checks the PowerBuilder message queue and, if there |
|
|
Handling exceptions |
Clears the current PowerBuilder exception |
|
|
Obtains the current thrown exception |
||
|
Checks for the existence of an exception that has |
||
|
Throws a PowerBuilder exception or inherited |
||
|
Passing arguments |
Adds an argument in a variable argument PowerBuilder |
|
|
Frees memory allocated by |
||
|
Initializes the PBCallInfo structure. |
||
|
Finding PowerBuilder classes and |
Searches for a group with a given name and group type |
|
|
Searches for a class with a given name within a given |
||
|
Searches for a class with a given name and a given |
||
|
Returns the class handle of a PowerBuilder |
||
|
Returns the name of a class in |
||
|
Returns the name of the current group. |
||
|
Returns the base class of a class, if |
||
|
Returns the system class handle of a PowerBuilder |
||
|
Returns the class that contains all the system global |
||
|
Returns true if the specified class is an |
||
|
Working with functions and events |
Finds a function that has the specified argument |
|
|
Returns the ID of the requested |
||
|
Returns the ID of the function that has a given |
||
|
Invokes system or user global |
||
|
Invokes a class member function. |
||
|
Triggers a PowerBuilder event. |
||
|
Working with enumerated variables |
Obtains the name of an enumerated |
|
|
Obtains the value of an enumerated |
||
|
Working with global variables |
Returns the name of a global variable. |
|
|
Returns the datatype of a global |
||
|
Returns the value of a global variable of a specific |
||
|
Obtains the value of a global variable of type |
||
|
Returns true if the global variable contains an |
||
|
Returns true if the global variable contains a null |
||
|
Returns true if the global variable contains a |
||
|
Sets the value of a global variable of a specific |
||
|
Sets the value of a shared variable to |
||
|
Working with shared variables |
Returns the name of a shared variable. |
|
|
Returns the datatype of a shared |
||
|
Returns the value of a shared variable of a specific |
||
|
Obtains the value of a shared variable of type |
||
|
Returns true if the shared variable contains an |
||
|
Returns true if the shared variable contains a null |
||
|
Returns true if the shared variable contains a |
||
|
Sets the value of a shared variable of a specific |
||
|
Sets the value of a shared variable to |
||
|
Working with arrays |
Returns the value of an array item of a specific |
|
|
Obtains information about an array. |
||
|
Obtains the datatype of an item in an |
||
|
Returns the length of an array. |
||
|
Obtains the value of an array item of type |
||
|
Returns true if the array item contains an array, |
||
|
Creates a bounded simple data array. |
||
|
Creates an unbounded simple data |
||
|
Creates a bounded PowerBuilder object or structure |
||
|
Creates an unbounded PowerBuilder object or structure |
||
|
Releases memory returned by |
||
|
Sets the value of an array item of a specific |
||
|
Sets the value of an array item to |
||
|
Working with strings |
Returns the length of a string in bytes without the |
|
|
Returns a pointer to the string passed in as an |
||
|
Creates a new string. |
||
|
Releases the memory used by a string. |
||
|
Frees an existing string and assigns a new string |
||
|
Working with binary large objects |
Returns a pointer to the data buffer for a |
|
|
Returns the length in bytes of blob data in a |
||
|
Creates a new blob and duplicates a buffer for the |
||
|
Destroys the existing data in a blob and copies data |
||
|
Working with decimal values |
Converts decimal data in a pbdec object to a |
|
|
Allocates resources for a new decimal data |
||
|
Frees the memory acquired using |
||
|
Converts a string to a decimal. |
||
|
Working with date and time values |
Converts data in a pbdate object to a |
|
|
Converts data in a pbdatetime object to a |
||
|
Converts data in a pbtime object to a |
||
|
Creates a new pbdate data object. |
||
|
Creates a new pbdatetime data object. |
||
|
Creates a new pbtime data object. |
||
|
Frees the memory acquired using |
||
|
Frees the memory acquired using |
||
|
Frees the memory acquired using |
||
|
Resets the value of the specified pbdate |
||
|
Resets the value of the specified pbdatetime |
||
|
Resets the value of the specified pbtime |
||
|
Splits the specified pbdate object into a year, |
||
|
Splits the specified pbdatetime object into a year, |
||
|
Splits the specified pbtime object into a year, |
||
|
Working with data values |
Clones the data in the PBCallInfo structure in an |
|
|
Clones the data in the PBCallInfo structure and |
||
|
Frees the value acquired by the AcquireValue or |
||
|
Sets the value of one IPB_Value object to the value |
||
|
Working with fields |
Obtains the internal ID of a class instance |
|
|
Obtains the name of the specified |
||
|
Obtains the datatype of a class instance |
||
|
Obtains the number of fields in the specified |
||
|
Obtains the value of a variable of type |
||
|
Obtains a pointer to the instance variable data for a |
||
|
Returns true if the field contains an array, |
||
|
Returns true if the field contains a null value |
||
|
Returns true if the field contains a pbobject, |
||
|
A set of datatype-specific functions. Sets the value |
||
|
A set of datatype-specific functions. Sets the value |
||
|
Refreshes a visual property of a PowerBuilder |
||
|
Working with native classes |
Obtains a pointer to the interface of a native |
|
|
Determines whether a pbobject is an instance of a |
||
|
Accessing result sets from DataWindows and |
Creates a result set object using a pointer to an |
|
|
Obtains an interface through which you can read data |
||
|
Releases the pointer obtained using GetResultSetAccessor. |
||
|
Working with marshaler extensions |
Obtains the marshaler object associated with a proxy |
|
|
Creates a proxy for a remote object. |
||
|
Sets a marshaler that will be used to invoke remote |