Two types of crosstabs – PB Docs 2017
Two types of crosstabs There are two types of crosstabs: Dynamic Static Dynamic crosstabs With dynamic crosstabs, PowerBuilder builds all the columns and rows in the crosstab dynamically when you run the crosstab. The number of columns and rows in the crosstab match the data that exists at runtime. Using the preceding crosstab as an…
Paste – PB Docs 2018
Paste PowerScript function Description Inserts (pastes) the contents of the clipboard into the specified control. For editable controls, text on the clipboard is pasted at the insertion point. For OLE controls, the OLE object on the clipboard replaces any object already in the control. Applies to EditMask, InkEdit, MultiLineEdit, SingleLineEdit, RichTextEdit, DropDownListBox, DropDownPictureListBox, DataWindow, OLE…
FOR…NEXT – PB Docs 2019
FOR…NEXT Description A control structure that is a numerical iteration, used to execute one or more statements a specified number of times. Syntax
|
1 2 3 |
FOR varname = start TO end {STEP increment} statementblock NEXT |
Parameter Description varname The name of the iteration counter variable. It can be any numerical type (byte, integer, double, real, long, longlong, or decimal), but integers provide the fastest performance. start…
C0017 Compiler Error – PB Docs 2019
C0017 Compiler Error Message text Incompatible type for NOT operator: type. Explanation The following code generates C00017:
|
1 2 3 4 5 6 7 |
int li_a int li_b if not li_b then // generates C00017: Incompatible type // for NOT operator: integer li_a ++ end if |
The following code compiles without error:
|
1 2 3 4 5 6 |
int li_a boolean bstatus if not bstatus then li_a ++ end if |
See Also Relational operators in PowerBuilder in the section called “Relational operators in PowerBuilder” in PowerScript Reference. Document get from Powerbuilder help Thank you for watching.
EncryptionKey – PB Docs 2021
EncryptionKey property for PowerScript controls Applies to MLSynchronization, MLSync, and SyncParm objects Description Specifies an encryption key for SQL Anywhere remote database. Setting this property is equivalent to using the -c “dbkey=myKey” dbmlsync option, where myKey is the encryption key for the database. Usage At design time, you can enter an encryption key value on…
Syntax 1: For synchronization without parameters – PB Docs 2022
Syntax 1: For synchronization without parameters Description Starts synchronization between a remote and consolidated database. Applies to MLSynchronization, MLSync controls Syntax
|
1 |
SyncObject.Synchronize ( ) |
Argument Description syncObject The name of the synchronization object. Return value Integer. Returns 1 for success and -1 for failure. Any other return value is an error code from dbmlsync. Examples If all…
Debugging the PowerClient project – PB Docs 2022
Debugging the PowerClient project The project must be deployed and run successfully before it can be debugged with PowerClient Debugger, because: The application executable (to be more exactly, the PBD files) will be debugged by the PowerClient Debugger, therefore, if you have changed the application scripts, make sure to deploy the application again immediately, so…
About building PowerBuilder targets – PB Docs 115
About building PowerBuilder targets You can build many types of targets with PowerBuilder. For traditional client/server applications, you need to create an executable version of your target that you can deploy to users’ computers. If you are building a distributed application with PowerBuilder, you typically build a client executable file and a server component that…
SaveDocumentIntoString – PB Docs 125
PBDOM_DOCUMENT: SaveDocumentIntoString method Description Saves the serialized XML string of the DOM tree contained within the PBDOM_DOCUMENT object into a string. Syntax
|
1 |
<span>pbdom_document_name</span>.SaveDocumentIntoString( <span></span><span></span>) |
Argument Description pbdom_document_name The name of a PBDOM_DOCUMENT object Return Values String. Returns a string containing the XML string of the PBDOM_DOCUMENT. Examples This code creates a new PBDOM_DOCUMENT and saves it…
GetItemData – PB Docs 126
IPB_ResultSetAccessor interface: GetItemData method Description Accesses the data in a cell. The first row is 1 and the first column is 1. Syntax
|
1 |
GetItemData(unsigned long <span>row</span>, unsigned long <span>col</span>, IPB_RSItemData* <span>data</span>) |
Argument Description row The row number of the cell col The column number of the cell data A pointer to an IPB_RSItemData structure Return Values Boolean. Examples This example stores the…