Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Naming tables at runtime
Message
From
19/12/2003 00:36:08
 
 
To
18/12/2003 08:10:08
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00859829
Message ID:
00860602
Views:
16
Seems to work for me
lcTemp = 'james'
CREATE CURSOR &lcTemp (field1 c(10), field2 c(10))
creates a cursor named james. However, the other suggestions are better. I had just gotten through looking through some code with about umpteen thousand macro substitutions, must've been embedded in my brain (hehehe).

Aloha,

James

>Hi James,
>
>does doing this actually work for you? When I try using macro substitution to name the table I just get a literal name of the variable as the table name rather than the value of the variable as the table name.
>
>Paul
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform