Library routines
The following RM/COBOL library routines are supported by isCOBOL:
Library Routine
Known Limitations and differences
C$CARG
 
C$CENTURY
 
C$DARG
 
C$DELAY
 
C$GETENV
 
C$GETLASTFILENAME
 
C$GETLASTFILEOP
 
C$GUICFG
 
C$MBAR
Hovering the mouse over the menu items doesn’t update the status bar, but shows a tool tip instead.
C$NARG
 
C$RBMENU
Hovering the mouse over the menu items doesn’t update the status bar, but shows a tool tip instead.
C$RERR
 
C$SBAR
 
C$SCRD
 
C$SCWR
The optional parameters ATTRIBUTE-CODES and PALETTE-TABLE are not supported.
C$SETDEVELOPMENTMODE
Mode must be “Absolute”.
C$SETENV
 
C$SHOW
Only the flags SW-HIDE and SW-SHOWNORMAL are supported. Any other flag is treated as SW-SHOWNORMAL.
C$TBAR
Icon files are not included in the runtime, they must be provided separately in the form of png files.
Hovering the mouse over the buttons doesn’t update the status bar, but shows a tool tip instead.
C$WRU
The second and third parameters are always 0.
 
In isCOBOL the routine returns the class name stripped of the "class" extension, not the Program-Id.
DELETE
 
P$CLEARDIALOG
 
P$CLEARFONT
 
P$DISABLEDIALOG
 
P$DISPLAYDIALOG
 
P$DRAWBITMAP
Mode must be “Absolute”.
P$DRAWBOX
Mode must be “Absolute”.
P$DRAWLINE
Mode must be “Absolute”.
P$ENABLEDIALOG
 
P$GETDEVICECAPABILITIES
Only these attributes are supported:
"Driver Version" return 0;
"Technology" returns 2 (Printer)
"Horizontal Size" horizontal size of the biggest supported page
"Vertical Size" vertical size of the biggest supported page
"Horizontal Resolution" Width of the biggest printable area, in dots.
"Vertical Resolution" Height of the biggest printable area, in dots.
"Logical Pixels X" maximum horizontal resolution in DPI
"Logical Pixels Y" maximum vertical resolution in DPI
"Aspect X" same as "Logical Pixels X"
"Aspect Y" same as "Logical Pixels Y"
"Aspect XY" Diagonal of a square whose sides are the 2 above
"Physical Width" same as "Horizontal Size"
"Physical Height" same as "Vertical Size"
"Physical Offset X" starting x offset of the printable are
"Physical Offset Y" starting y offset of the printable are
"Scaling Factor X" always 0
"Scaling Factor Y" always 0.
P$GETDIALOG
Only these attributes are supported:
"Print Dialog Copies"
"Device Name"
"Orientation"
"Paper Size"
"Device Mode Copies"
"Default Source"
"Print Quality"
"Color"
P$GETFONT
Only these attributes are supported:
"Height"
"Width"
"Escapement"
"Weight"
"Italic"
"Underline"
"Strike Out"
"Pitch"
"Face Name"
P$GETTEXTMETRICS
Only these attributes are supported:
"Height"
"Ascent"
"Descent"
"Internal Leading"
"External Leading"
"Average Character Width"
"Maximum Character Width"
"Weight"
"Italic"
"Underlined"
"Struck Out"
"Pitch"
P$NEWPAGE
Can’t specify orientation.
P$SETDEFAULTMODE
 
P$SETDEFAULTUNITS
 
P$SETDIALOG
Only these attributes are supported:
"Print Dialog Copies"
"Device Name"
"Orientation"
"Paper Size"
"Device Mode Copies"
"Default Source"
"Print Quality"
"Color"
P$SETDOCUMENTNAME
 
P$SETFONT
Only these attributes are supported:
"Height"
"Width"
"Escapement"
"Weight"
"Italic"
"Underline"
"Strike Out"
"Pitch"
"Face Name"
P$SETPEN
 
P$SETPOSITION
Mode must be “Absolute”.
P$SETTEXTCOLOR
 
P$SETTEXTPOSITION
Mode must be “Absolute”.
P$SETTOPMARGIN
The measure unit in "Character" is not supported
P$TEXTOUT
Mode must be “Absolute”.
RENAME
 
SYSTEM
 
All the other routines must be replaced with the corresponding isCOBOL routine or with an isCOBOL syntax that has the same effect, if possible.
The following table lists the known solutions to obtain the same effect of RM/COBOL routines.
RM/COBOL routine
isCOBOL solution
C$BITMAP
Use W$BITMAP with WBITMAP-DISPLAY op-code
C$GETSYSINFO
Use WIN$VERSION for Windows information. On other systems, call system APIs.
Use C$GETPID to retrieve the process id.
Use J$NETADDRESS to retrieve the computer name.
C$LOGICALAND
Use CBL_AND
C$LOGICALOR
Use CBL_OR
C$LOGICALXOR
Use CBL_XOR
C$MEMORYALLOCATE
Use M$ALLOC
C$MEMORYDEALLOCATE
Use M$FREE
C$PLAYSOUND
Use WIN$PLAYSOUND
C$SECUREHASH
Use A$ENCRYPT
C$TBAREN
Modify the ENABLE property of buttons in the TOOL-BAR
C$TBARSEQ
Modify BITMAP and BITMAP-NUMBER properties of buttons in the TOOL-BAR
C$TITLE
Modify the TITLE property of the WINDOW
If the routine that you’re looking for doesn’t appear in the above list, contact Veryant’s support to discuss about possible solutions.