Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invalid database table name error
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Invalid database table name error
Divers
Thread ID:
00368813
Message ID:
00368813
Vues:
65
I am using a varible that contains the name of a table. Using the drop table command, I get the an error stating 'invalid database table name'. Isn't it possible to delete table based on variable names? Here is the code:

&&cmdcreatetable this create random name table
ranvar = sys(2015)
.ranvar = ranvar
SELECT test FROM employee!employee into table (ranvar)


&&cmddeletetable this is suppose to delete random name table
ranvar = .ranvar
drop table (ranvar+'.dbf')


Thanks
Nick Patel
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform