Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dfuse()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfUse()
Optimised file opening for data-entry objects
------------------------------------------------------------------------------
Syntax:

     dfUse( <cFile>, [<nIndex>], <aFile>,
               [<cMode>], [<cAlias>] ) --> lOpen

Parameters:

     <cFile>    File name.
     <nIndex>   Optional index. If it is specified, it will be opened. The
     default value is -1 (all indexes).
     <aFile>    Array of open files
     <cMode>    Mode to open. SEE DDUSE
     <cAlias>   Alias to use

Returns:

     <lOpen> Is .T. if the file was correctly opened

Description:

     dfUse() is used for optimised file opening by dBsee objects. The file
     is added to the array of open files.

Example:

     LOCAL aFile := {}
     USE art NEW
     dfUse( "art", NIL, aFile )  // File art already in use
                                 // aFile := {}
     dfUse( "cli", NIL, aFile )  // File cli not in use
                                 // aFile := {"cli"}
     dfUse( "fat", NIL, aFile )  // Fat not in use
                                 // aFile := {"cli","fat"}
     dfClose( aFile ) // Closes all files opened by dFUse()

See also:

     ddUse(), dfClose()

See Also: ddUse() dfClose()

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