Partager via


Gendbc.prg

Located in the Visual FoxPro Tools\Gendbc folder, this tool generates a program that can re-create a database. Use this program to:

  • Generate code you can analyze to learn how a database is created using program code.
  • Generate code that can be placed in your program code eliminating the need to ship your databases with your application.
  • Generate code that can be placed in your program code to re-create the database if a customer's data is corrupt.
DO GENDBC WITH filename

Parameters

  • filename
    A character string that contains the name of an output file. The filename can contain path information and an extension. If no extension is supplied, the default extension .prg is used.

    Note   This program will only work on the currently active database.

Sample Files Example

* Creates MYDATA.prg which contains code to 
* re-create the database MyDatabase.
*
OPEN DATABASE MyDatabase
DO gendbc WITH 'MyData.prg'
*

*
* Creates Main.prg in the C:\VFP folder which 
* contains code to re-create the database Main.
*
SET DATABASE TO Main
DO gendbc WITH 'c:\vfp\main'

See Also

Addlabel.app | Code Analyzer | Genhtml.prg | Hexedit.app | Transformer | Cpzero.prg | Utility Programs