Summary:
See also: Variables, Functions, Operators, Built-in Classes.
A built-in function is a predefined function that is included in the runtime system, or provided as a library function automatically linked to your programs. You do not have to link with any additional BDL library to create your programs. The built-in functions are part of the language.
Function | Description |
ARG_VAL() | This function returns a command line argument by position. |
ARR_COUNT() | This function returns the number of records entered in a program array during or after execution of the INPUT ARRAY statement. |
ARR_CURR() | This function returns the current row in a DISPLAY ARRAY or INPUT ARRAY. |
DOWNSHIFT() | This function returns returns a string value in which all uppercase characters in its argument are converted to lowercase. |
ERRORLOG() | This function copies the string passed as parameter into the error log file. |
FGL_BUFFERTOUCHED() | This function returns TRUE if the input buffer was modified since current field was selected. |
FGL_DIALOG_GETFIELDNAME() | This function returns the name of the current input field. |
FGL_DIALOG_GETBUFFER() | This function returns the value of the current field as a string. |
FGL_DIALOG_GETBUFFERSTART() | When using a paged display array, returns the row offset to fill the array buffer. |
FGL_DIALOG_GETBUFFERLENGTH() | When using a paged display array, returns the number of rows to fill the array buffer. |
FGL_DIALOG_INFIELD() | This function returns TRUE if the field passed as parameter is the current input field. |
FGL_DIALOG_SETBUFFER() | This function sets the value of the current field as a string. |
FGL_DIALOG_SETCURSOR() | This function sets the position of the input cursor within the current field. |
FGL_DIALOG_GETCURSOR() | This function returns the position if the edit cursor in the current field. |
FGL_GETENV() | This function returns the value of the environment variable whose name you specify as argument. |
FGL_GETFILE() | Transfers a file from the front-end to the application server machine. |
FGL_GETVERSION( ) | Returns the build number of the runtime system. |
FGL_GETHELP( ) | Returns the help message according to a number. |
FGL_GETPID( ) | This function returns the system process id. |
FGL_GETRESOURCE( ) | This function returns the value of an FGLPROFILE entry. |
FGL_PUTFILE() | Transfers a file from from the application server machine to the front-end. |
FGL_SET_ARR_CURR() | This function sets the current line in a record list. |
FGL_SYSTEM() | This function starts a program in a UNIX terminal emulator when using a graphical front end. |
FGL_WIDTH() | This function returns the number of columns needed to represent the string. |
LENGTH() | This function returns the number of characters of the string passed as parameter. |
NUM_ARGS() | This function returns the number of program arguments. |
SET_COUNT() | This function specifies the number of records that contain data in a static array. |
SHOWHELP() | This function function displays a runtime help message, corresponding to its specified argument, from the current help file. |
STARTLOG() | This function initializes error logging and opens the error log file passed as parameter. |
UPSHIFT() | This function returns a string value in which all lowercase characters in its argument are converted to uppercase. |
WINEXEC() | This function starts a program on the Windows Front End
without waiting. Use ui.Interface.frontCall("standard","execute",...) instead. |
WINEXECWAIT() | This function starts a program on the Windows Front End
and waits. Use ui.Interface.frontCall("standard","execute",...) instead. |
WINSHELLEXEC() | This function opens a document with the corresponding
program. Use ui.Interface.frontCall("standard","shellexec",...) instead. |
WINOPENDIR() | This function shows a dialog window to select a directory
in the front end workstation file system. Use ui.Interface.frontCall("standard","opendir",...) instead. |
WINOPENFILE() | This function shows a dialog window to select a file in
the front end workstation file system. Use ui.Interface.frontCall("standard","openfile",...) instead. |
WINSAVEFILE() | This function shows a dialog window to choose a file in
the front end workstation file system. Use ui.Interface.frontCall("standard","savefile",...) instead. |
FGL_DIALOG_GETKEYLABEL() | This function returns the text associated to a key in the current interactive instruction. |
FGL_DIALOG_SETCURRLINE() | This function moves to a specific row in a record list. |
FGL_DIALOG_SETFIELDORDER() | This function enables or disables field order constraint. |
FGL_DIALOG_SETKEYLABEL() | This function sets the text associated to a key for the current interactive instruction. |
FGL_GETCURSOR() | This function returns the position if the edit cursor in the current field. |
FGL_GETWIN_HEIGHT() | This function returns the number of rows of the current window. |
FGL_GETWIN_WIDTH() | This function returns the width of the current window as a number of columns. |
FGL_GETWIN_X() | This function returns the horizontal position of the current window. |
FGL_GETWIN_Y() | This function returns the vertical position of the current window. |
FGL_GETKEYLABEL() | This function returns the default label associated to a key. |
FGL_REPORT_PRINT_BINARY_FILE() | This function prints a file containing binary data during a report. |
FGL_SETKEYLABEL() | This function sets the default label associated to a key. |
FGL_SETSIZE() | This function sets the size of the main application window. |
FGL_SETTITLE() | This function sets the title of the main application window. |
FGL_WINDOW_GETOPTION() | This function returns the attributes of the current window. |
FGL_WINBUTTON() | This function displays an interactive message box in a separate window with multiple choices |
FGL_WINMESSAGE() | This function displays an interactive message box in a separate window with some text |
FGL_WINPROMPT() | This function displays a dialog box with a field that accepts a value |
FGL_WINQUESTION() | This function displays an interactive message box in a separate window with Yes, No, Cancel buttons |
ERR_GET() | This function returns the text corresponding to an error number. |
ERR_PRINT() | This function prints in the error line the text corresponding to an error number. |
ERR_QUIT() | This function prints in the error line the text corresponding to an error number and terminates the program. |
FGL_DRAWBOX() | This function draws a rectangle based on character terminal coordinates in the current open window. |
FGL_DRAWLINE() | This function draws a line based on character terminal coordinates in the current open window. |
FGL_KEYVAL() | This function returns the key code of a logical or physical key. |
FGL_LASTKEY() | This function returns the key code of the last key pressed by the user. |
SCR_LINE() | This function returns the number of the current screen record in its screen array. |
ORD() | This function returns the ASCII value of the first byte of a character expression. |
Function | Description |
DATE1() | This function converts a DATETIME to a DATE. |
FGL_CHARBOOL_TO_INTBOOL() | This function converts a character representation of a Boolean value to an INTEGER. |
FGL_DIALOG_GETCURSOR() | Returns the editor cursor position in the current field. |
FGL_INTBOOL_TO_CHARBOOL( ) | This function converts an INTEGER to a character representation of the Boolean value. |
FGL_FGLGUI() | Returns TRUE if the application runs in graphical mode. |
FGL_FORMFIELD_GETOPTION() | Returns attributes of a specified form field. |
FGL_GETKEY() | Waits for a keystroke and returns the key code. |
FGL_GETUITYPE() | This function returns the type of the front end. |
FGL_MSG_NONL() | Returns an error message without trailing blanks. |
FGL_SCR_SIZE( ) | Returns the number of rows of a screen array of the current form. |
FGL_WINDOW_OPEN( ) | Opens a new window with coordinates and size. |
FGL_WINDOW_OPENWITHFORM( ) | Opens a new window with coordinates and form. |
FGL_WINDOW_CLEAR( ) | Clears the window whose name is passed as parameter. |
FGL_WINDOW_CLOSE( ) | Closes the window whose name is passed as parameter. |
FGL_WINDOW_CURRENT( ) | Makes current the window whose name is passed as parameter. |
FGL_INIT4JS( ) | Initializes the built-in function library. |
FGL_MSG_NONL( ) | Returns an error message without the CR at the end. |
FGL_RESOURCE( ) | Selects a specific FGLPROFILE file. |
FGL_UIRETRIEVE( ) | Returns the value of a variable from the WTK front end. |
FGL_WTKCLIENT( ) | Returns TRUE if the current front end is the WTK. |
TIME1( ) | This function extracts the time part (hour, minute, second) from DATETIME. |
This function returns a command line argument by position.
FUNCTION ARG_VAL( position INTEGER ) RETURNING
STRING
This function provides a mechanism for passing values to the program through the command line that invokes the program. You can design a program to expect or allow arguments after the name of the program in the command line.
Like all built-in functions, ARG_VAL()
can be invoked from any program
block. You can use it to pass values to MAIN,
which cannot have formal arguments, but you are not restricted to calling ARG_VAL()
from the MAIN statement. You can use the ARG_VAL()
function to
retrieve individual arguments during program execution. You can also use the
NUM_ARGS() function to determine how many arguments
follow the program name on the command line.
If position is greater than 0, ARG_VAL(position)
returns the command-line
argument used at a given position. The value of position must be between 0
and the value returned by NUM_ARGS(), the number of
command-line arguments.
The expression ARG_VAL(0)
returns the name of the application program.
See also: NUM_ARGS().
This function returns the number of program arguments.
FUNCTION NUM_ARGS( ) RETURNING INTEGER
See also: ARG_VAL().
This function accepts as its argument a character expression and returns the integer value of the first byte of that argument.
FUNCTION ORD( source STRING ) RETURNING INTEGER
See also: FGL_KEYVAL(), ASCII().
This function returns the number of the current screen record in its screen array.
FUNCTION SCR_LINE( ) RETURNING INTEGER
See also: ARR_CURR().
This function specifies the number of records that contain data in a static array.
FUNCTION SET_COUNT( nbrows INTEGER )
When using a static
array in an INPUT ARRAY (with WITHOUT DEFAULTS
clause) or a DISPLAY ARRAY statement, you must specify the total
number of records in the array. In typical applications, these
records contain the values in the retrieved rows that a SELECT statement returned from
a database cursor. You specify the number of rows with the
SET_COUNT()
function or with the COUNT attribute of
INPUT ARRAY and DISPLAY ARRAY statements.
See also: ARR_CURR(), FGL_SET_ARR_CURR().
This function returns the number of records entered in a program array during or after execution of the INPUT ARRAY statement.
FUNCTION ARR_COUNT( ) RETURNING INTEGER
You can use ARR_COUNT()
to determine the number of program records that
are currently stored in a program array. In typical BDL applications, these records correspond to values from
result set of retrieved database rows from the most recent query. By first calling the
SET_COUNT() function or by using the COUNT attribute of
INPUT ARRAY, you can set an upper limit on the value that ARR_COUNT()
returns.
ARR_COUNT()
returns a positive integer, corresponding to the index of the furthest record within the program array that the
user accessed. Not
all the rows counted by ARR_COUNT()
necessarily contain data (for
example, if the user presses the DOWN ARROW key more times than there are rows of
data).
See also: INPUT ARRAY, ARR_CURR().
This function returns the current row in a DISPLAY ARRAY or INPUT ARRAY.
FUNCTION ARR_CURR( ) RETURNING INTEGER
The ARR_CURR()
function returns an integer value that identifies
the current row of a list of rows in a INPUT ARRAY
or DISPLAY
ARRAY instruction. The first row is numbered 1.
You can pass ARR_CURR()
as an argument when you call a function. In this way
the function receives as its argument the current record of whatever array is
referenced in the INPUT ARRAY or DISPLAY
ARRAY statement.
The ARR_CURR()
function can be used to force a FOR loop to begin beyond the
first line of an array by setting a variable to ARR_CURR()
and using that
variable as the starting value for the FOR
loop.
The built-in functions ARR_CURR()
and SCR_LINE() can return
different values if the program array is larger than the screen array.
See also: INPUT ARRAY, DISPLAY ARRAY, ARR_COUNT(), FGL_SET_ARR_CURR(), SCR_LINE().
This function returns the text corresponding to an error number.
FUNCTION ERR_GET( error-number INTEGER ) RETURNING
STRING
See also: ERRORLOG(), STARTLOG(), ERR_QUIT(), ERR_PRINT(), Exceptions.
This function prints in the error line the text corresponding to an error number.
FUNCTION ERR_PRINT( error-number INTEGER )
See also: ERRORLOG(), STARTLOG(), ERR_QUIT(), ERR_GET(), Exceptions.
This function prints in the error line the text corresponding to an error number and terminates the program.
FUNCTION ERR_QUIT( error-number INTEGER )
See also: ERRORLOG(), STARTLOG(), ERR_QUIT(), ERR_GET(), Exceptions.
This function copies the string passed as parameter into the error log file.
FUNCTION ERRORLOG( text STRING )
See also: STARTLOG(), Exceptions.
This function function displays a runtime help message, corresponding to its specified argument, from the current help file.
FUNCTION SHOWHELP( help-number INTEGER )
See also: OPTIONS, Message Files.
This function initializes error logging and opens the error log file passed as parameter.
FUNCTION STARTLOG( filename STRING )
Call STARTLOG()
in the MAIN program
block to open or create an error log file. After STARTLOG()
has been invoked, a record of every subsequent error that
occurs during the execution of your program is written in the error log file. If
you need to report specific application errors, use the ERRORLOG()
function to make an entry in the error log file.
The default format of an error record consists of the date, time, source-module name
and line number, error number, and error message. If you invoke the STARTLOG()
function, the format of the error records appended to the error log file after each
subsequent error are as follows:
Date: 03/06/99 Time: 12:20:20 Program error at "stock_one.4gl", line number 89. SQL statement error number -239. Could not insert new row - duplicate value in a UNIQUE INDEX column. SYSTEM error number -100 ISAM error: duplicate value for a record with unique key.
The STARTLOG()
and ERRORLOG() functions can be
used for instrumenting a program, to track how the program is used. This use is not
only valuable for improving the program but also for recording work habits and detecting
attempts to breach security.
If the argument of STARTLOG()
is not the name of an existing file,
STARTLOG()
creates one. If the file already exists, STARTLOG()
opens it and positions the file pointer so that subsequent error messages can be appended
to this file.
See also: ERRORLOG(), Exceptions.
This function returns TRUE if the input buffer was modified since the current field was selected.
FUNCTION FGL_BUFFERTOUCHED( ) RETURNING INTEGER
See also: FGL_DIALOG_SETBUFFER(), FGL_DIALOG_GETBUFFER().
This function returns the value of the current field as a string.
FUNCTION FGL_DIALOG_GETBUFFER( ) RETURNING STRING
See also: FGL_DIALOG_SETBUFFER(), FGL_BUFFERTOUCHED(), GET_FLDBUF().
This function sets the value of the current field as a string.
FUNCTION FGL_DIALOG_SETBUFFER( value STRING )
See also: FGL_DIALOG_GETBUFFER(), FGL_BUFFERTOUCHED(), GET_FLDBUF().
This function converts a character representation of a Boolean value to an INTEGER Boolean.
FUNCTION FGL_CHARBOOL_TO_INTBOOL( value CHAR(1) ) RETURNING INTEGER
See also: FGL_INTBOOL_TO_CHARBOOL().
This function converts an INTEGER Boolean to a character representation of the Boolean value.
FUNCTION FGL_INTBOOL_TO_CHARBOOL( value INTEGER ) RETURNING
CHAR(1)
See also: FGL_CHARBOOL_TO_INTBOOL().
This function returns the name of the current input field.
FUNCTION FGL_DIALOG_GETFIELDNAME( ) RETURNING STRING
See also: FGL_DIALOG_INFIELD().
This function returns TRUE if the field passed as the parameter is the current input field.
FUNCTION FGL_DIALOG_INFIELD( field-name STRING ) RETURNING
INTEGER
See also: INFIELD().
This function sets the position of the input cursor in the current field.
FUNCTION FGL_DIALOG_SETCURSOR( index INTEGER )
See also: FGL_GETCURSOR().
This function enables or disables field order constraint.
FUNCTION FGL_DIALOG_SETFIELDORDER( active INTEGER )
Typical BDL applications control user input with BEFORE FIELD and AFTER FIELD blocks. In many cases the field order and the sequential execution of AFTER FIELD blocks is important in order to validate the data entered by the user. With graphical front ends, however, you can use the mouse to move to a field. By default the runtime system executes all BEFORE FIELD and AFTER FIELD blocks of the fields used by the interactive instruction, from the origin field to the target field selected by mouse click. If necessary, you can force the runtime system to ignore all intermediate field triggers by calling this function with a FALSE attribute.
This function moves to a specific row in a record list.
FUNCTION FGL_DIALOG_SETCURRLINE( line INTEGER, row
INTEGER )
This function moves to a specific row in a record list.
FUNCTION FGL_SET_ARR_CURR( row INTEGER )
This function draws a rectangle based on character terminal coordinates in the current open window.
FUNCTION FGL_DRAWBOX( height, width, line,
column, color INTEGER )
See also: FGL_DRAWLINE().
This function draws a line based on character terminal coordinates in the current open window.
FUNCTION FGL_DRAWLINE( posX, posY, width, color
INTEGER )
See also: FGL_DRAWBOX().
This function returns the key code of the last key pressed by the user.
FUNCTION FGL_LASTKEY( ) RETURNING INTEGER
See also: FGL_KEYVAL().
This function returns the key code of a logical or physical key.
FUNCTION FGL_KEYVAL( character STRING ) RETURNING INTEGER
FGL_KEYVAL()
are: ACCEPT, HELP,
NEXT, RETURN, DELETE, INSERT, NEXTPAGE,
RIGHT, DOWN, INTERRUPT, PREVIOUS, TAB,
ESC, ESCAPE, LEFT, PREVPAGE, UP,
F1 through F64, CONTROL-character
( except A, D, H, I, J, L, M, R, or X )FGL_KEYVAL()
considers the case.
In all other instances, the function ignores the case of its argument, which
can be uppercase or lowercase letters. FGL_KEYVAL()
can be used in form-related statements to examine a value returned by the
FGL_LASTKEY() function.
To determine whether the user has performed an action, such as inserting a row, specify the logical
name of the action (such as INSERT) rather than the name of the physical key (such as F1).
For example, the logical name of the default Accept key is ESCAPE. To test if the key most recently
pressed by the user was the Accept key, specify FGL_KEYVAL("ACCEPT")
rather
than FGL_KEYVAL("escape")
or FGL_KEYVAL("ESC")
.
Otherwise, if a key other than ESCAPE is set as the Accept key and the user presses that key,
FGL_LASTKEY()
does not return a code equal to FGL_KEYVAL("ESCAPE")
.
The value returned by FGL_LASTKEY()
is undefined in a MENU statement.
See also: FGL_LASTKEY().
This function prints a file containing binary data during a report.
FUNCTION FGL_REPORT_PRINT_BINARY_FILE( filename
STRING )
This function returns the position if the edit cursor is in the current field.
FUNCTION FGL_GETCURSOR( ) RETURNING INTEGER
See also: FGL_DIALOG_SETCURSOR().
This function returns the number of rows of the current window.
FUNCTION FGL_GETWIN_HEIGHT( ) RETURNING INTEGER
See also: FGL_GETWIN_WIDTH().
This function returns the width of the current window as a number of columns.
FUNCTION FGL_GETWIN_WIDTH( ) RETURNING INTEGER
See also: FGL_GETWIN_WIDTH().
This function returns the horizontal position of the current window.
FUNCTION FGL_GETWIN_X( ) RETURNING INTEGER
See also: FGL_GETWIN_Y().
This function returns the vertical position of the current window.
FUNCTION FGL_GETWIN_X( ) RETURNING INTEGER
See also: FGL_GETWIN_X().
This function returns the number of bytes of the expression passed as parameter.
FUNCTION LENGTH( expression ) RETURNING INTEGER
See also: FGL_WIDTH().
This function returns the build number of the runtime system.
FUNCTION FGL_GETVERSION( ) RETURNING INTEGER
Returns the help text according to its identifier by reading the current help file.
FUNCTION FGL_GETHELP( id INTEGER ) RETURNING STRING
See also: The OPTIONS instruction.
This function returns the system process identifier.
FUNCTION FGL_GETPID() RETURNING INTEGER
See also: FGL_SYSTEM().
This function returns the row offset of the page to feed a paged display array.
FUNCTION FGL_DIALOG_GETBUFFERSTART( ) RETURNING INTEGER
See DISPLAY ARRAY.
This function returns the number of rows of the page to feed a paged display array.
FUNCTION FGL_DIALOG_GETBUFFERLENGTH( ) RETURNING INTEGER
See DISPLAY ARRAY.
Transfers a file from the front end workstation to the application server machine.
CALL fgl_getfile(src STRING, dst STRING)
Transfers a file from the application server machine to the front end workstation.
CALL fgl_putfile(src STRING, dst STRING)
This function returns the value of the environment variable having the name you specify as the argument.
FUNCTION FGL_GETENV( variable STRING ) RETURNING
STRING
The argument of FGL_GETENV()
must be a string
expression that returns the name of an environment variable. If the
requested value exists in the current user environment, the function returns it
as a character string and then returns control of execution to the calling
context.
This function returns the default label associated to a key.
FUNCTION FGL_GETKEYLABEL( keyname STRING ) RETURNING
STRING
See also: FGL_SETKEYLABEL(), FGL_DIALOG_GETKEYLABEL().
This function sets the default label associated to a key.
FUNCTION FGL_SETKEYLABEL( keyname STRING, label
STRING )
See also: FGL_SETKEYLABEL(), FGL_DIALOG_SETKEYLABEL().
This function returns the label associated to a key for the current interactive instruction.
FUNCTION FGL_DIALOG_GETKEYLABEL( keyname STRING ) RETURNING
STRING
See also: FGL_SETKEYLABEL(), FGL_DIALOG_SETKEYLABEL().
This function sets the label associated to a key for the current interactive instruction.
FUNCTION FGL_DIALOG_SETKEYLABEL( keyname STRING, label
STRING )
See also: FGL_SETKEYLABEL(), FGL_DIALOG_GETKEYLABEL().
This function sets the size of the main application window.
FUNCTION FGL_SETSIZE( width INTEGER, height INTEGER
)
See also: FGL_SETTITLE().
This function sets the title of the main application window.
FUNCTION FGL_SETTITLE( label
STRING )
See also: FGL_SETSIZE().
This function starts a program in a UNIX terminal emulator when a graphical front end is used.
FUNCTION FGL_SYSTEM( command STRING )
The function starts a program that needs a UNIX terminal emulator when using the Windows Front End, even if the current program has been started without a visible terminal. The command parameter is a string or variable that contains the commands to be executed. The UNIX terminal will be raised and activated. The terminal is automatically lowered when the child process finishes.
See also: WINEXEC().
This function returns the number of columns needed to represent the printed version of the expression.
FUNCTION FGL_WIDTH( expression ) RETURNING
INTEGER
See also: LENGTH().
This function returns attributes of the current window.
FUNCTION FGL_WINDOW_GETOPTION( attribute STRING )
RETURNING STRING
This function displays an interactive message box in a separate window with multiple choices
FUNCTION FGL_WINBUTTON(
title STRING, text STRING, default STRING,
buttons STRING, icon STRING, danger SMALLINT ) RETURNING STRING
01
MAIN02
DEFINE answer STRING03
LET answer = FGL_WINBUTTON( "Media selection", "What is your favorite media?",04
"Lynx", "Floppy Disk|CD-ROM|DVD-ROM|Other", "question", 0)05
DISPLAY "Selected media is: " || answer06
END MAIN
This function displays an interactive message box in a separate window with a text.
FUNCTION FGL_WINMESSAGE( title STRING, text
STRING, icon STRING )
01
MAIN02
CALL FGL_WINMESSAGE( "Title", "This is a critical message.", "stop")03
END MAIN
This function displays a dialog box with a field that accepts a value.
FUNCTION FGL_WINPROMPT (
x INTEGER, y INTEGER, text
STRING,
default STRING, length INTEGER, type STRING ) RETURNING value
Avoid passing NULL values.
01
MAIN02
DEFINE answer DATE04
LET answer = FGL_WINPROMPT( 10, 10, "Today", DATE, 10, 7 )05
DISPLAY "Today is " || answer06
END MAIN
This function displays an interactive message box in a separate window with Yes, No, Cancel buttons
FUNCTION FGL_WINQUESTION(
title STRING, text
STRING, default STRING,
buttons STRING, icon STRING, danger
SMALLINT )
01
MAIN02
DEFINE answer STRING04
LET answer = "yes"05
WHILE answer = "yes"06
LET answer = FGL_WINQUESTION(07
"Procedure", "Would you like to continue ? ",08
"cancel", "yes|no|cancel", "question", 0)09
END WHILE10
IF answer = "cancel" THEN11
DISPLAY "Canceled."12
END IF13
END MAIN
This function returns the value of an FGLPROFILE entry.
FUNCTION FGL_GETRESOURCE( name STRING ) RETURNING
STRING
This function waits for a keystroke and returns the key code.
FUNCTION FGL_KEYVAL() RETURNING INTEGER
See also: FGL_LASTKEY().
This function returns a string value in which all uppercase characters in its argument are converted to lowercase.
FUNCTION DOWNSHIFT( source STRING ) RETURNING
STRING
See also: UPSHIFT().
This function returns a string value in which all lowercase characters in its argument are converted to uppercase.
FUNCTION UPSHIFT( source STRING ) RETURNING STRING
See also: DOWNSHIFT().
This function executes a program on the machine where the Windows Front End runs and returns immediately.
FUNCTION WINEXEC( command STRING ) RETURNING
INTEGER
See also: WINEXECWAIT(), DDE Support.
This function executes a program on the machine where the Windows Front End runs and waits for termination.
FUNCTION WINEXECWAIT( command STRING ) RETURNING INTEGER
See also: WINEXEC(), DDE Support.
This function opens a document with the corresponding program according to the file extension.
FUNCTION WINSHELLEXECWAIT( filename STRING ) RETURNING INTEGER
See also: WINEXEC(), DDE Support.
This function shows a dialog window to let the user select a directory path on the front end workstation file system.
FUNCTION WINOPENDIR( dirname STRING, caption STRING ) RETURNING
STRING
This function shows a dialog window to let the user select a file path on the front end workstation file system, for a load.
FUNCTION WINOPENFILE( dirname STRING, typename STRING,
extlist STRING, caption STRING ) RETURNING STRING
This function shows a dialog window to let the user select a file path on the front end workstation file system, for a save.
FUNCTION WINSAVEFILE( dirname STRING, typename STRING,
extlist STRING, caption STRING ) RETURNING STRING
Value | Key name | Description |
1 to 26 | Control-x | Control key, where x is the any letter from A to Z. The key code corresponding to Control-A is 1, Control-B is 2, etc. |
others < 256 | ASCII chars | Other codes correspond to the ASCII characters set. |
2000 | up | The up-arrow logical key. |
2001 | down | The down-arrow logical key. |
2002 | left | The left-arrow logical key. |
2003 | right | The right-arrow logical key. |
2005 | nextpage | The next-page logical key. |
2006 | prevpage | The previous-page logical key. |
2008 | help | The help logical key. |
2011 | interrupt | The interrupt logical key. |
2012 | home | The home logical key. |
2013 | end | The end logical key. |
2016 | accept | The accept logical key. |
2017 | backspace | The backspace logical key. |
3000 to 3255 | Fx | Function key, where x is the number of the function key. The key code corresponding to a function key Fx is 3000+x-1, for example, 3011 corresponds to F12. |