Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using a Variable as Field Name
Message
 
 
À
26/04/2005 16:26:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01008608
Message ID:
01008646
Vues:
15
This message has been marked as the solution to the initial question of the thread.
>I would also suggest:
>
Function getRecords(fieldname)
>   Select &fieldname From myTable...
>EndFunc
>
>
>This allows "fieldname" to contain a list of fields, if desired, separated by commas; e.g., "partno, descr"

It also could be faster because macro substituion is evaluated only once and EVALUATE (fieldname) will be executed for every record.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform