Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Comments – PB Docs 125 – PowerBuilder Library

Comments – PB Docs 125

Comments

Description

You can use comments to document your scripts and prevent
statements within a script from executing. There are two methods.

Syntax

Double-slash method

Slash-and-asterisk method

Usage

The following table shows how to use each method.

Table 1-1: Methods for adding comments in scripts

Method

Marker

Can use to

Note

Double slash

//

Designate all text on the line to the
right of the marker as a comment

Cannot extend to multiple
lines

Slash and asterisk

/*…*/

Designate the text between the markers
as a comment

Nest comments

  • Can extend over multiple
    lines (multiline comments do not require a continuation character)

  • Can be nested

note.png Adding comment markers

In Script views and the Function painter, you can use the
Comment Selection button (or select Edit>Comment Selection
from the menu bar) to comment out the line containing the cursor
or a selected group of lines.

For information about adding comments to objects
and library entries, see the PowerBuilder Users Guide.

Examples

Double-slash method

Slash-and-asterisk method


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x