18 lines
291 B
OpenEdge ABL
18 lines
291 B
OpenEdge ABL
% Reference Manual §10.0 — BIND and WITH declarations
|
|
|
|
SECTION ref_bind_with;
|
|
|
|
TYPE integer {-32768 TO 32767};
|
|
|
|
TYPE point STRUCT
|
|
x integer,
|
|
y integer
|
|
ENDSTRUCT;
|
|
|
|
DCL demo PROC() IS
|
|
BLOCK
|
|
DCL p point;
|
|
BIND px TO p AS point;
|
|
WITH p;
|
|
1 -> px.x;
|
|
ENDBLOCK; |