damezumari
2010-05-22 01:18:04 UTC
I use vfp9 sp2 and win xp.
The code below works as expected compiled and not compiled:
dummy = 'C:\Data folder for J Nordgreen Report cards June
2010\reportcard.dbc'
OPEN DATABASE (dummy)
MESSAGEBOX (DBC())
dummy = 'C:\9FS\form.dbc'
OPEN DATABASE (dummy)
MESSAGEBOX (DBC())
It responds with:
C:\Data folder for J Nordgreen Report cards June 2010\reportcard.dbc
C:\9FS\form.dbc
However, when I run the same code as part of a bigger project only the
non-compiled version works as expected. The compiled version returns:
C:\Data folder for J Nordgreen Report cards June 2010\reportcard.dbc
C:\gis_programs\gis_form\data\form.dbc
The exe file sits in C:\gis_programs\gis_form\ and earlier in the
program I set C:\gis_programs\gis_form\data\ as part of the path.
However, why should the path matter when I give the entire path to the
database when I open it? And why does the first database open as
expected?
The deadline for this project is tomorrow so a solution to this
problem is very much appreciated. :)
Regards,
Jan Nordgreen
The code below works as expected compiled and not compiled:
dummy = 'C:\Data folder for J Nordgreen Report cards June
2010\reportcard.dbc'
OPEN DATABASE (dummy)
MESSAGEBOX (DBC())
dummy = 'C:\9FS\form.dbc'
OPEN DATABASE (dummy)
MESSAGEBOX (DBC())
It responds with:
C:\Data folder for J Nordgreen Report cards June 2010\reportcard.dbc
C:\9FS\form.dbc
However, when I run the same code as part of a bigger project only the
non-compiled version works as expected. The compiled version returns:
C:\Data folder for J Nordgreen Report cards June 2010\reportcard.dbc
C:\gis_programs\gis_form\data\form.dbc
The exe file sits in C:\gis_programs\gis_form\ and earlier in the
program I set C:\gis_programs\gis_form\data\ as part of the path.
However, why should the path matter when I give the entire path to the
database when I open it? And why does the first database open as
expected?
The deadline for this project is tomorrow so a solution to this
problem is very much appreciated. :)
Regards,
Jan Nordgreen