SETLPTR Examples
Example 1:
|
|
|
|
|
|
Variable |
PL |
FP |
LP |
Contents |
|
Before: |
RECVING |
20 |
1 |
14 |
ABCDEFGHIJKLMN······ |
|
| |||||
|
After: |
RECVING |
20 |
1 |
20 |
ABCDEFGHIJKLMN······ |
No Condition Flags are set (all FALSE).
Example 2:
|
|
|
|
|
|
Variable |
PL |
FP |
LP |
Contents |
|
Before: |
RECVING |
20 |
1 |
14 |
ABCDEFGHIJKLMN······ |
|
| |||||
|
After: |
RECVING |
20 |
1 |
18 |
ABCDEFGHIJKLMN······ |
No Condition Flags are set (all FALSE).
Example 3:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
·10.2 |
|
|
|
|
|
|
ABCDEFGHIJKLMN······ |
|
| |||||
|
|
|
|
|
|
·10.2 |
|
|
|
|
|
|
ABCDEFGHIJKLMN······ |
The EOS Condition Flag is set since the Form Pointer was changed.
Example 4:
|
|
Variable |
PL |
FP |
LP |
Contents |
|
Before: |
LLNUMBER |
5 |
|
|
···25 |
|
|
RECVING |
20 |
10 |
10 |
ABCDEFGHIJKLMN······ |
|
| |||||
|
After: |
LLNUMBER |
5 |
|
|
···25 |
|
|
RECVING |
20 |
10 |
10 |
ABCDEFGHIJKLMN······ |
The OVER Condition Flag is set. The value of LLNUMBER exceeds the PL of RECVING. The same would occur if LLNUMBER had contained a negative number.
![]() |