C0134 Compiler Error
Message text
The STATIC keyword cannot override the DYNAMIC keyword.
Explanation
If you use the DYNAMIC keyword in a chain of cascaded calls, it
carries over to all function calls that follow. You cannot apply the
STATIC keyword to calls that follow the DYNAMIC keyword. In this example,
a nonvisualobject mynvo has a simple function, returnself, that takes a
nonvisual object as an argument and returns the nonvisualobject. The
following code shows two statements that generate C0134 because the STATIC
keyword follows the DYNAMIC keyword:
|
1 2 3 4 5 |
mynvo a,b,c,d returnself(a).static returnself(b).dynamic returnself(c) // ok returnself(a).dynamic returnself(b).static returnself(c) // generates C0134 d = dynamic returnself(a).returnself(b).static returnself(c) // generates C0134 |
See Also
Static versus dynamic calls in the section called “Static
versus dynamic calls” in PowerScript Reference.
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest