Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refering to a dynamic alias
Message
De
14/09/2004 07:20:02
 
 
À
14/09/2004 07:11:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00941839
Message ID:
00941843
Vues:
8
This message has been marked as a message which has helped to the initial question of the thread.
>Hi All
>
>If I create a file using a dynamically created alias how does one refer to the fields of the table in code? For instance, lets say I create a cursor and use a variable for the cursor name.
>
>
>cMyAlias = "MyFileXYZ"
>CREATE CURSOR ( cMylias ) ( Name C(30) )
>
>SELECT (cMyAlias)
>APPEND BLANK
>REPLACE &cMyAlias->Name with "Fred"  && This works ok
>
>
>Must one use macro substition with "->" notation to do this?
>
>Thanks

hi Jos,

If it's only the alias
replace Name with 'fred' in (cMyAlias)
You really do not need the cMyAlias on the left of with

As far as I know, the replace replaces either in the current area or the one after the in clause. With an in, that area is selected for as long the replace takes
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform