Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create command is adding a .dbf to my tablename, sometim
Message
De
23/10/2001 14:56:07
 
 
À
23/10/2001 14:38:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00572202
Message ID:
00572227
Vues:
35
>>>Using VFP7 on Windows 2000 Pro
>>>
>>>The following line:
>>>
>>>CREATE (lcTable) FROM DbfStru
>>>
>>>is causing me grief. lcTable = "c:\somepath\sometable.def" which results in the table being created as: "c:\somepath\sometable.def.dbf" and "sometable.def.fpt". The strange thing is that this only hapens sometimes, and so far only on one machine. So does anyone have a clue here, or should I just insert a file() test and rename the files?
>>>
>>>TTTIA
>>>
>>>Tony
>>
>>Try this before creating the table:
>>
lcTable = JustPath(lcTable) + "\" + JustStem(lcTable)
>>HTH
>
>J.,
>Actually I want to use the .def extension instead of the .dbf extension. Problem is the create command is adding the .dbf. If I JustStem() the filename I will lose the .def, so that won't work. What I am after is "sometable.def" and "sometable.fpt".

Sorry, forgot to mention that when using CREATE TABLE you don't need to strip the extension. (probably obvious)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform