White
space
Description
Blanks, tabs, form feeds, and comments are forms of white space. The
compiler treats white space as a delimiter and does not consider the
number of white space characters.
Usage
White space in string literals
The number of white space characters is preserved when they are part
of a string literal (enclosed in single or double quotation marks).
Dashes in identifiers
Unless you have prohibited the use of dashes in identifiers (see
Identifier names), you
must surround a dash used as a minus sign with spaces. Otherwise,
PowerBuilder considers the dash as part of a variable name:
|
1 2 |
Order - Balance // Subtracts Balance from Order Order-Balance // A variable named Order-Balance |
Examples
Example 1
Here the spaces and the comment are white space, so the compiler
ignores them:
|
1 |
A + B /*Adjustment factor */+C |
Example 2
Here the spaces are within a string literal, so the compiler does
not ignore them:
|
1 |
"The value of A + B is:" |