Difference between revisions of "SET()"

From Recital Documentation Wiki
Jump to: navigation, search
 
(Products)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=SET()=
 
 
 
==Class==
 
Environment
 
 
 
 
==Purpose==
 
==Purpose==
 
Function to check status of a set command
 
Function to check status of a set command
Line 15: Line 8:
  
 
==See Also==
 
==See Also==
[[EXCLUSIVE()]], [[SYS()]], [[SET COMMANDS]]
+
[[EXCLUSIVE()]], [[SYS()]], [[:Category:Set_Commands|SET COMMANDS]]
  
  
Line 22: Line 15:
  
 
SET("COMPRESS") returns true if COMPRESS has been set on.
 
SET("COMPRESS") returns true if COMPRESS has been set on.
 +
 
SET("FASTINDEX") returns true if FASTINDEX 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("FILECASE) returns true if FILECASE has been set on.
 +
 
SET("PSHARE") returns true if PSHARE 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("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.
 
SET("SYSMENU") returns true if SYSMENU has been set on.  It returns "ON" or "OFF" in Xbase compatibility mode.
  
Line 43: Line 41:
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital, Recital Server
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]

Latest revision as of 16:22, 7 December 2009

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, Recital Server