C0136 Compiler Error
Message text
It is illegal to POST a method whose result is needed as an argument
value, or for a subsequent expression.
Explanation
In this example, a nonvisualobject has a simple function, f2, that
takes an integer argument and returns 1. The following code shows another
function that uses the POST keyword incorrectly:
|
1 2 3 4 5 6 |
int li_a = post f2(1) // generates C0136 int li_b li_b = 5 + post f2(2) // generates C0136 li_b = f2(post f2(3)) // generates C0136 post f2(4) // ok |
See Also
Triggering versus posting functions and events in the section called “Triggering versus posting functions
and events” in PowerScript Reference.
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest