>>I have a method that generates my database from script when the user clicks 'New' on the File menu. All stored procedures is in a text file. To add them to the database I use the following command:
>>
>>APPEND PROCEDURES FROM ( m.cTempFile ) OVERWRITE
>>
>>This works fine within the development environment, but it crashes out in the run-time. I get error 1001, 'Feature not available.'
>My guess is that's because VFP6SP0 and below couldn't compile code at runtime.
I thought about that. However, the stored procedures are compiled with the command
COMPILE DATABASE
which is the next line of code I use, and the code DOES NOT generate errors there. So I am not so sure. Also, APPEND PROCEDURES is not listed as one of the commands that cannot run from the run time.
You write about VFP5SPO and below. Does this mean that in VFP7 this will be cahnged?
My main concern is if there is any way (short of hacking the run-time library!) around this? How do other people generate databases from code? Or they don't? Or they do but have no stored procedures in them?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement