Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Artful Two for Clipper 5.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

Syntax

DECLARE_EM( cDbf, cPrgfile[, cAlias ] )

Purpose

Write declarations of memory variables, each named mfieldname,
for a table to a text file.

Arguments

     cDbf -- name of .DBF (extension not required if .DBF)

     cPrgfile -- name of .PRG file (extension must be specified)

     cAlias -- if passed, alias, else cDbf

Setup

cDbf must be open or available.

Example

     * Append CUSTOMER memvar declarations to AAI_CUST.PRG:
     DECLARE_EM( "CUSTOMER", "AAI_CUST.PRG" )
     SCROLLFILE( "AAI_CUST.PRG" )

Returns

.T. if successful, else .F.

Side Effects

Creates cPrgfile if it doesn't exist, otherwise appends to it

Artful Calls

POP_MSG, IS_OPEN, DB_OPEN, FILEOPEN, PROPER, CRLF

Source File

AA_DECLR.PRG

Notes

By adding explicit memory variable declarations to your code, you diminish
memory fragmentation at run-time. However your symbol table grows by 16
bytes per variable declared.

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