Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select-SQL
Message
From
28/04/1997 11:51:53
Larry Long
ProgRes (Programming Resources)
Georgia, United States
 
 
To
28/04/1997 11:26:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00029712
Message ID:
00029925
Views:
30
>>>I have the select statement as follows:
>>> select * from table1 where table1.name = (variable);
>>>
>>>what I want to do is be abel to change table1.name based on what the user inputs. So how do I use a variable in place of table1.name.
>>
>>If table1 is a variable
>>then
>>
>>STORE (ALLTRIM(TABLE1)) TO TABLE1
>> SELECT * FROM &TABLE1. WHERE &TABLE1..NAME = variable
>>
>>should work.( Note the two periods)
>
>Thanks, using the & macro substitution is what I was missing.
//:^)
L.A.Long
ProgRes
lalong1@charter.net
Previous
Reply
Map
View

Click here to load this message in the networking platform