Syntax and Behavior
In RM/COBOL the following syntax allows to create and destroy a pop-up window:
DISPLAY WINDOW-CONTROL-BLOCK LINE WCB-LINE POSITION WCB-POS CONTROL "WINDOW-CREATE, ...". ... DISPLAY WINDOW-CONTROL-BLOCK CONTROL "WINDOW-REMOVE". |
isCOBOL supports this syntax with two small differences:
1. The POP-UP clause must be specified
2. The CLOSE statement must be used to destroy the pop-up window
The above code should be changed as follows:
DISPLAY POP-UP WINDOW-CONTROL-BLOCK LINE WCB-LINE POSITION WCB-POS CONTROL "WINDOW-CREATE, ...". ... CLOSE POP-UP WINDOW-CONTROL-BLOCK CONTROL "WINDOW-REMOVE". |
See
DISPLAY and
CLOSE for more details about the above syntax.
In RM COBOL the PROGRAM-ID special register returns the program name exactly as it appears in the PROGRAM-ID paragraph. In isCOBOL instead it returns the name of the program class stripped of the class extension.
The "SET POINTER TO ADDRESS OF DataItem" statement is not supported. There are two possible solutions:
• compile the program with the -cp option. This is suggested if you need to pass the pointer to external C functions.
• compile the program with -rm=handle,address. This is suggested if you use the pointer internally in the COBOL program.