(CVAL('showkeyword'))
Returns the current value or setting of 'showkeyword'. You must either enclose the SHOW keyword in quotation marks or use a dot variable that has a TEXT data type to which you have assigned the SHOW keyword. You can use all SHOW keywords with CVAL, as well as DATABASE, DBPATH, CURRDIR.
The following keywords can be used for (CVAL('keyword')):
•AND
•ANSI
•BELL
•CASE
•DATE
•ECHO
•GUID
•MANY
•MDI
•NAME
•NULL
•PLUS
•SEMI
•SORT
•TIME
•USER
•UTF8
•WAIT
•WRAP
•ZERO
Examples:
In the following example, the value of vcval is OFF if the value of MULTI is set to off.
SET VAR vcval = (CVAL('MULTI'))
In the following example, the user keyword is loaded into a variable and then the variable is used in the CVAL function. It returns the current user identifier.
SET VAR vword text = 'USER'
SET VAR vuser = (CVAL(.vword))
For more information about SHOW keywords, see SHOW.