[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
FT_LINKED()
Determine if a function was linked in
------------------------------------------------------------------------------
Syntax
FT_LINKED( <cString> ) -> lResult
Arguments
<cString> is a character string containing one or more function
calls
Returns
.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."
Description
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.
Examples
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
Source: LINKED.PRG
Author: Brian Loesgen
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson