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

Constant declarations – PB Docs 2019 – PowerBuilder Library

Constant declarations – PB Docs 2019

Constant
declarations

To declare a constant, add the keyword CONSTANT to a standard
variable declaration:

Only a datatype that accepts an assignment in its declaration can be
a constant. For this reason, blobs cannot be constants.

Even though identifiers in PowerScript are not case sensitive, the
declarations shown here use uppercase as a convention for constant
names:

Advantages of constants

If you try to assign a value to the constant anywhere other than in
the declaration, you get a compiler error. A constant is a way of assuring
that the declaration is used the way you intend.

Constants are also efficient. Because the value is established
during compilation, the compiled code uses the value itself, rather than
referring to a variable that holds the value.


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