Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Nanforum Toolkit v2.1 Reference Guide - <b>ft_linked()</b> http://www.X-Hacker.org [<<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

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson