Creating aliases in applications
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Creating aliases in applications
You cannot assign and reference an alias in the same
procedure. You must assign an alias to a logical database name prior
to compiling and running procedures that use that alias. For example,
the procedure in i-alias1.p fails to compile
when it reaches the FOR EACH statement,
because you cannot assign and reference the alias myalias in
a single procedure.
i-alias1.p
|
To solve this problem, split i-alias1.p into two procedures, as in the following examples:
i-alias2.p
|
i-dispcust.p
|