Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Two files with the same name but different extenstions
Message
De
17/10/2001 10:56:10
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00569596
Message ID:
00569608
Vues:
17
This message has been marked as a message which has helped to the initial question of the thread.
Nadya,
When you create a table/cursor with an alias that is already used, VFP automatically assigns a new alias. Simply store ALIAS() to a memvar for later reference:
SELECT * FROM < Whatever > INTO TABLE c:\temp\Test.dbf
SELECT * FROM < Whatever > INTO TABLE c:\temp\Test.log
lcLogAlias = ALIAS()
SELECT Test && selects test.dbf
SELECT (lcLogAlias) && selects test.log
HTH
>Hi everybody,
>
>I have a simple problem, but haven't found a simple solution so far. I want to create two files with the same name. One would have DBF extension, another would have LOG extension. Both are tables and I need to use them in the same program. I
>
> select ... into (m.lcNewFile)
> select juststem(m.lcNewFile)
> append from ...
>
> I also do create table free (m.lcNewLogFile) ...
>
> I need to select it and append records into it. How can I distingush them? Is there the only way to close both and re-open under different aliases?
Daniel
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform