[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
+---------------------------------+
| SET() |
+---------------------------------+
SET(<expC> [,1])
-----------------------------------
Returns status of a SET command.
Return value - Character or Numeric
-----------------------------------
Not all SET commands may be used in the SET() function. The SET()
function is identical to SYS(2001).
SET() recognizes the four-character abbreviation for most FoxPro SET
keywords. For example, STAT and PRIN may be used for SET STATUS and SET
PRINT respectively.
<expC>
Returns information about SET command you specify in character
expression <expC>. SET command's current setting is returned as a
character or numeric string.
1
Additional information about SET command may be returned. Including
optional argument 1 does not return additional information for all SET
commands.
SET commands that behave differently than described above include:
DISPLAY The SET() function will not accept "DISPLAY" as its parameter.
See SYS(2006) for more information on identifying the type of video card
in use.
DEFAULT SET("DEFAULT") returns the default drive. The default
directory is returned by SYS(2003).
VIEW The SET() function will not accept "VIEW" as its parameter.
TEXTMERGE SET("TEXTMERGE") returns either "ON" or "OFF"
SET("TEXTMERGE", 1) returns the textmerge delimiters.
+---------------------------------+
| Program Example |
+---------------------------------+
The following program example demonstrates how you can use SET() to save
the TALK setting without creating talk on the screen or in a window.
IF SET('TALK') = 'ON' && TALK handled as a special case.
SET TALK OFF && Turn TALK OFF
savetalk = 'ON' && TALK was ON, save the setting
ELSE && TALK is OFF
savetalk = 'OFF' && TALK was OFF, save the setting
ENDIF
SET TALK OFF
SET TALK &savetalk && Restore original TALK setting
-----------------------------------
See Also: DISPLAY, LIST, SYS(2001) SET command status, SYS(2006)
-----------------------------------
See Also:
DISPLAY
LIST
SYS(2001) SET command status
SYS(2006)
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson