Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using a Variable as Field Name
Message
From
26/04/2005 15:59:42
 
 
To
26/04/2005 15:56:03
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01008608
Message ID:
01008609
Views:
16
Function getRecords(fieldname)
   Select EVALUATE (fieldname) From myTable...
EndFunc
HTH

>How can I use a parameter sent to my function as a field name in my select statement?
>
>Function getRecords(fieldname)
>Select fieldname From myTable...
>EndFunc
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform