Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange results with the REMOVE command
Message
 
 
À
23/04/2000 19:12:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00362635
Message ID:
00362695
Vues:
25
>Using the "remove table" command to remove a table from a database I get strange results at runTime while good results during development mode
>Example: Lets say at runtime the program resides in a folder "c:\trackum\bailbond" . At startup I set the default to this folder and commands like "file()" work fine finding things in the default directory. However, the command "remove table someTable delete" produces an error saying "File 'C:\Trackum\someTable.dbf" does not exist. If I move the app to "C:\trackum" then I get the error "c:\someTable" does not exist.
>Can anyone explain this?

Are you using the descriptive name of the table stored in the DBC or the actual filename? Based on the error, VFP is looking for the actual filename and not the alias name you gave it in the DBC. Also, you should not have to explicitly change to the directory where the files exist. Just make sure the DBC is the DB of record [set database to mydbc]. I also make sure the path to the DBC and data files is part of my SET PATH statement.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform