Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macro substitution and evaluate - which to use
Message
 
 
À
19/07/2007 16:28:21
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01241954
Message ID:
01242144
Vues:
20
>>Although most of the others recommend textmerge, I wouldn't bother in this case where name subsitution is enough. I find it much easier to read code that contains the actual SQL command than code that builds a string and executes it. While I haven't tested, I see no reason why this version would be slower.
>>
>>Tamar
>
>Oh I was feeling alone:) Thanks.
>Cetin

Cetin,

You posted correct solution, but Tamar made a mistake.
SELECT (laTmp[1]) AS (lcNewField) ; && Here it should be &laTmp[1] instead
>  FROM (lcOldFile) ;
>  INTO TABLE lcNewFile DATABASE (lcTableDBC)
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform