0% found this document useful (0 votes)
293 views

EGL Tips

WithV60Compat modifier is used in programs migrated from EGL version 6 and earlier, or from VisualAge(r) Generator programs. If the source is one of the following values, the statement is treated like an assignment statement.'' - Curly braces indicate use FormGroup2 helpGroup = yes; shift+CTRL+l PROPERTIES are not highlighted in Maroon as is the default for the other (usually) keywords.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
293 views

EGL Tips

WithV60Compat modifier is used in programs migrated from EGL version 6 and earlier, or from VisualAge(r) Generator programs. If the source is one of the following values, the statement is treated like an assignment statement.'' - Curly braces indicate use FormGroup2 helpGroup = yes; shift+CTRL+l PROPERTIES are not highlighted in Maroon as is the default for the other (usually) keywords.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

VAG to EGL conversion

Change all = to ==

Change all <> to !=

Change all ‘ to “

Replace EZESQCOD with sysvar.sqldata.sqlcode

Put IF conditions in parentheses

Put IF conditions in parentheses

Use && for AND in WHILE

Replace EZERTN with RETURN(most of the cases).

Host variables do not need : before them


Function XQPINQ-KDIADR-12()

move withV60Compat
The withV60Compat modifier is used in programs migrated from EGL version 6 and
earlier, or from VisualAge® Generator programs. Do not use this modifier with new
code.

Use this modifier when the variables that the move statement references are
declared in a standalone function, where migration cannot determine the type of the
variable. This option provides compatibility for a move statement without a modifier.

The withV60Compat modifier provides the following behavior:


• If the source is one of the following values, the statement is treated like an
assignment statement:
o A primitive variable
o A field in a fixed structure
o A literal
o A constant
• Otherwise, the statement is treated as a move by name.

isNoRefresh
If the EGL isNoRefresh statement property is set to YES, it indicates that the
program does not refresh the screen when the called program returns control. The
property is BOOLEAN, and NO is the default value. This means the program refreshes
the screen by default.
(NOMAPS,REPLY; = {isNoRefresh = yes}

Pending from KDIO6P425-REP-IADR

KDIO6S700-ADJ-EFF

Workbench
Workspace
Projects
----------EGL Source
Packages
Files

Map ------------------------Form

Export preferences and import preferences whenever you

Design may give incorrect results…but, use SOURCE tab to correct it.

‘{ ‘ - Curly braces indicate


use FormGroup2 {helpGroup = yes}; // contains FormH

shift+CTRL+L

PROPERTIES { are not highlighted in Maroon as is the default for the other*(usually)
keywords.

FOR is similar to COBOL PERFORM VARYING

In Map definition source, lines with * as the first character of the line define
CONSTANTS and those without, represent variables.
G:\RBD-EGL Class\ClassG:\RBD-EGL Class\Class

Stored Procs

Best practices/performance issues


Primitives, DataItems – refer to P.97 of EGLProgrammersGuide_7101.

Look for different kinds of delimiters (brackets ) – P. 10 of EGLLanguageReference_7101

Debug – Enable Hot swapping if checked, when you change the program in Debugger
mode, the code gets saved…if that is not checked, the code does not get saved.

EZEFLO is same as EXIT STACK.

You might also like