SET()

From Recital Documentation Wiki
Revision as of 15:48, 20 March 2009 by Yvonnemilne (Talk | contribs)

Jump to: navigation, search

SET()

Class

Environment


Purpose

Function to check status of a set command


Syntax

SET(<expC> [, <expN>])


See Also

EXCLUSIVE(), SYS(), SET COMMANDS


Description

The SET() function returns .T. or .F. depending on the status of the system setting. SET() only returns information for SET parameters which can be ON or OFF. The character expression <expC> is the SET command keyword. This function can be used in conjunction with the SET command to toggle the various SET COMMANDS ON and OFF.

SET("COMPRESS") returns true if COMPRESS has been set on.

SET("FASTINDEX") returns true if FASTINDEX has been set on.

SET("FILECASE) returns true if FILECASE has been set on.

SET("PSHARE") returns true if PSHARE has been set on.

SET("NAVIGATE") returns true if NAVIGATE has been set on.

SET("SYSMENU") returns true if SYSMENU has been set on. It returns "ON" or "OFF" in Xbase compatibility mode.

If the optional <expN> is included and is greater than zero (0), additional information is returned for those set commands that have more than one setting. For example, the SET ALTERNATE command has two settings: SET ALTERNATE ON/OFF and SET ALTERNATE TO <filename>.


Example

? set("safety")
.F.
 
// Another Example
// toggle exclusive to the opposite setting
set exclusive(iif(set("exclusive"),.F.,.T.))


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer