Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create Table Confusion?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00456897
Message ID:
00456958
Views:
24
Hello, Steve.

As others told you, just take out the eval and it will work fine.

Also, you can get a simpler an valid filename calling to sys(3). The only gotcha is that if you call it twice in the same machine very quickly, it can return the same result.

We write a little function that does it (with a name more explicit that any sys, also):
Function UniqueID

local lcID
lcID = sys(3)
do while lcID = sys(3)
   * Just waits to make sure that the next call will return a different value
enddo

return lcID
You can use it as:
create table ( UniqueID() ) ...
Hope this helps.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform