Low-level access to the OLE object – PB Docs 125
Low-level access to the OLE object If you need low-level access to OLE through a C or C++ DLL that you call from PowerBuilder, you can use these functions: GetNativePointer (for OLEControl and OLECustomControl) GetAutomationNativePointer (for OLEObject) When you have finished, you must use these functions to free the pointer: ReleaseNativePointer (for OLEControl and OLECustomControl)…
Syntax 1 For combining longs – PB Docs 125
Syntax 1 For combining longs Description Combines two unsigned longs into a longlong value. Syntax
|
1 |
<span>LongLong</span> ( <span>lowword</span>, <span>highword</span> ) |
Argument Description lowword An UnsignedLong to be the low word in the longlong highword An UnsignedLong to be the high word in the longlong Return Values LongLong. Returns the longlong if it succeeds and -1 if an error occurs. If…
Using PBDOM – PB Docs 125
Using PBDOM This section describes how to accomplish basic tasks using PBDOM classes and methods. To check for complete code samples that you can download and test, select Programs>Sybase>PowerBuilder 12.5>PB 12.5 Code Samples from the Windows Start menu. Document get from Powerbuilder help Thank you for watching.
Integer – PB Docs 125
Integer PowerScript function Description Converts the value of a string to an integer or obtains an integer value that is stored in a blob. Syntax
|
1 |
<span>Integer</span> ( <span>stringorblob</span> <span></span>) |
Argument Description stringorblob A string whose value you want returned as an integer or a blob in which the first value is the integer value. The rest of the…
Setting the name and namespace of a PBDOM_ATTRIBUTE – PB Docs 125
Setting the name and namespace of a PBDOM_ATTRIBUTE The W3C “Namespaces in XML” specification (in section 5.3) places restrictions on setting the name and namespace of a PBDOM_ATTRIBUTE. No tag can contain two attributes with identical names, or with qualified names that have the same local name and have prefixes that are bound to identical…
LoadPicture – PB Docs 125
LoadPicture PowerScript function Description Loads a picture from a file or blob into an InkPicture control. Controls InkPicture controls Syntax
|
1 |
<span>inkpicname</span>.LoadPicture (<span></span> <span>t</span> | <span>b</span> ) |
Argument Description inkpicname The name of the InkPicture control into which you want to load a picture. t A string containing the name and location of a file that contains the picture you want…
Assigning values to the Transaction object – PB Docs 125
Assigning values to the Transaction object Before you can use a default (SQLCA) or nondefault (user-defined) Transaction object, you must assign values to the Transaction object connection properties. To assign the values, use PowerScript dot notation. Example The following PowerScript statements assign values to the properties of SQLCA required to connect to a Sybase Adaptive…
LastPos – PB Docs 125
LastPos PowerScript function Description Finds the last position of a target string in a source string. Syntax
|
1 |
<span>LastPos</span> ( <span>string1</span>, <span>string2</span> {, <span>searchlength</span> } ) |
Argument Description string1 The string in which you want to find string2. string2 The string you want to find in string1. searchlength (optional) A long that limits the search to the leftmost searchlength characters of the source…
Providing online help for users – PB Docs 125
Providing online help for users Two ways to call help from an application PowerBuilder provides two principal ways of calling an online help file from a PowerBuilder application: Use the ShowHelp and ShowPopupHelp PowerScript functions in your application scripts to call help topics. Declare the HTML Help API as an external function and use the…
InvokePBFunction – PB Docs 125
InvokePBFunction PowerScript function Description Invokes the specified user-defined window function in the child window contained in a PowerBuilder window ActiveX control. Controls Window ActiveX controls Syntax
|
1 |
<span>activexcontrol</span>.<span>InvokePBFunction</span> ( <span>name</span> {, <span>numarguments</span> {, <span>arguments</span> } }) |
Argument Description activexcontrol Identifier for the instance of the PowerBuilder Window ActiveX control. When used in HTML, this is the NAME attribute of the object element. When used…