Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drop free table
Message
De
13/05/2006 07:24:08
 
 
À
13/05/2006 06:59:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01121605
Message ID:
01121619
Vues:
15
From help on drop table: Removes a table from the current database and deletes it from disk.

So in other words, if a table is in a database, you must use Drop table, if it's a "free table" you can just delete it.

>hi,
>thank you so much, it works.
>
>if you have a time what the different between delete and drop.in this case
>
>>>hi all,
>>>
>>>is there away to drop free table if found
>>>as
>>>
>>>locate for aa.dbf
>>> if found()
>>>   drop table aa
>>>else
>>>  mesagebox("not found")
>>>endif
>>>
>>>thanks
>>
>>
>>m.PathToFile = "c:\yourdir\"
>>lcSearchFile = m.PathToFile+"aa.dbf" &&& example lcSearchFile = c:\yourdir\aa.dbf
>>IF FILE(m.lcSearchFile)
>>   DELETE FILE(m.lcSearchFile)
>>ELSE
>>   MESSAGEBOX("Not Found")
>>ENDIF
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform