Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create Table Confusion?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00456897
Message ID:
00456958
Vues:
26
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform