ERRORLEVEL() | Set the xClipper return code |
FT_LINKED() | Determine if a function was linked in |
FT_RESTSETS() | Restore status of all SET command settings |
FT_SAVESETS() | Save the status of all the SET command settings |
FT_SETCENTURY() | Check/Set the CENTURY Setting |
GETENV() | Retrieve the contents of a OS environment variable |
MEMORY() | Determine the amount of available free pool memory |
NETERR() | Determine if a network command has failed |
NETNAME() | Return the current workstation identification |
OS() | Return the operating system name |
SET() | Inspect or change a system setting |
FT_LINKED( <cString> ) -> lResult
.T. if all functions within the string are currently linked into the application, .F. if one or more aren't. See below for a definition of "function."
This function would be used in data driven application to determine whether or not a macro compiled function was linked in.
Several functions can be passed, and nested, in <cString>.
Caveat: Some function calls are converted by the preprocessor into other function calls. You cannot have these types of functions in a macro compiled string as they never exist at runtime. FT_LINKED will correctly tell you that they are invalid.
For instance: there is no function called SORT() in any of the Nantucket LIBraries, but it is a valid CLIPPER command because the preprocessor will convert it to other function calls.
cString := "FT_GoodFunc(BadFunc(3,2))" IF FT_LINKED(cString) EVAL( &("{||"+cString+"}") ) ELSE ALERT("Error: "+cString+" was not linked in. Called by FT_LINKED()") ENDIF
FT_RESTSETS( [ <aOldSets> ] ) -> NIL
No arguments
This function "restores" the SET Settings, i.e., it sets them to the values in the array aOldSets. The following SETs are not currently supported: FILTER, FORMAT, FUNCTION, INDEX, KEYS, MODE, ORDER, PROCEDURE, RELATION, TYPEAHEAD
FT_RESTSETS(aOldSets)
FT_SAVESETS() -> aOldSets
No arguments
An array containing the values of the supported SETs.
This function saves the SET Settings, i.e., it copies them into an array, aOldSets. The following SETs are not currently supported: FILTER, FORMAT, FUNCTION, INDEX, KEYS, MODE, ORDER, PROCEDURE, RELATION, TYPEAHEAD
aOldSets := FT_SAVESETS()
FT_SETCENTURY( [ <lNewSetState> ] ) -> <lOldState>
No arguments
The state of the CENTURY setting upon entry to the routine
This function returns the state (ON/OFF, TRUE/FALSE) of the CENTURY and optionally sets it ON or OFF.
lOldState := FT_SETCENTURY() // Get current CENTURY Setting lOldState := FT_SETCENTURY(.T.) // Get the current CENTURY Setting // and turn it on (set it to TRUE) lOldState := FT_SETCENTURY(.F.) // Get the current CENTURY Setting // and turn it off (set it to FALSE)