Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- RaSQL/B 6.1a for Clipper - <b>n_xdstruct()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_XDSTRUCT()
Returns file structure string from currently open DBF 

Syntax
N_XDSTRUCT()

Returns
Returns a structure string, suitable for use in N_XUSE() or USE DEFINITION, 
of the DBF open in the current area.

Remarks
This function is useful for converting DBF files to Btrieve.  Generally used 
with the library, since with the RDD you can convert DBF files to Btrieve 
simply by using the COPY TO command.

Note that only simple Btrieve data types (C, N, D and L) will be used in 
creating the structure string.

Source code is in SNIPPETS.PRG.

Example

* Create an empty Btrieve file and RQB file
* matching the current DBF
USE CLIENT.DBF
cStruct := N_XDSTRUCT()
=N_XAMAKETBL("","CLIENT.DTA",cStruct,"")
MEMOWRIT("CLIENT.RQB",cStruct)


See Also: N_XFSTRUCT()

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