Alan Pengelly
2005-10-28 19:38:55 UTC
I have had a first go at using GenDBC (with
VFP9), supposedly as per help instructions.
I have also had a search through archive newsgroup
stuff (I keep tons of stuff like this, sad isn't
it)
command line is:
set Default to d:\TestOpen
* open project database
OPEN DATABASE ;
D:\Fox9\PJX\opens\opensdata\opens.dbc
* set to current
SET DATABASE TO OPENS
* Do GenDBC
DO HOME()+'tools\gendbc\gendbc' ;
WITH "D:\TestOpen\opendb.prg"
* Creates opendb.prg and .krt files
DO opendb
Creates empty database, no tables, views or stored
procedures. Ran without error.
Running opendb.prg predictably produces error
maketable_TableName.prg does not exist.
It produces the code below. What am I doing wrong,
or have I the wrong version or something?
**** start opendb.prg
* * 28/10/2005 OPENS.DBC 17:44:17
* * Description:
* * This program was automatically generated by
* * GENDBC
* * Version 2.26.67
**************************************************
DisplayStatus([Creating database...])
CLOSE DATA ALL
CREATE DATABASE 'OPENS.DBC'
DisplayStatus([Creating table PLAYERS...])
MakeTable_PLAYERS()
*** remove similar lines
DisplayStatus([Creating view VOPENCOMPS...])
MakeView_VOPENCOMPS()
DisplayStatus([Finished.])
FUNCTION DisplayStatus(lcMessage)
WAIT WINDOW NOWAIT lcMessage
ENDFUNC
********** ends prg
regards
Alan
VFP9), supposedly as per help instructions.
I have also had a search through archive newsgroup
stuff (I keep tons of stuff like this, sad isn't
it)
command line is:
set Default to d:\TestOpen
* open project database
OPEN DATABASE ;
D:\Fox9\PJX\opens\opensdata\opens.dbc
* set to current
SET DATABASE TO OPENS
* Do GenDBC
DO HOME()+'tools\gendbc\gendbc' ;
WITH "D:\TestOpen\opendb.prg"
* Creates opendb.prg and .krt files
DO opendb
Creates empty database, no tables, views or stored
procedures. Ran without error.
Running opendb.prg predictably produces error
maketable_TableName.prg does not exist.
It produces the code below. What am I doing wrong,
or have I the wrong version or something?
**** start opendb.prg
* * 28/10/2005 OPENS.DBC 17:44:17
* * Description:
* * This program was automatically generated by
* * GENDBC
* * Version 2.26.67
**************************************************
DisplayStatus([Creating database...])
CLOSE DATA ALL
CREATE DATABASE 'OPENS.DBC'
DisplayStatus([Creating table PLAYERS...])
MakeTable_PLAYERS()
*** remove similar lines
DisplayStatus([Creating view VOPENCOMPS...])
MakeView_VOPENCOMPS()
DisplayStatus([Finished.])
FUNCTION DisplayStatus(lcMessage)
WAIT WINDOW NOWAIT lcMessage
ENDFUNC
********** ends prg
regards
Alan