Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Naming tables at runtime
Message
De
17/12/2003 07:27:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
17/12/2003 07:19:41
Paul Williams
Powerful Wonders
Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00859829
Message ID:
00859830
Vues:
16
>(Apologies in advance if this is a dumb post, I'm a totally new VFP programmer struggling to find resources for beginners!)

Both beginners and advanced questions are handled here; no need to apologize!

>Is there a way to dynamically assign names to tables at runtime? I want to do something like:
>
>SELECT someValue FROM someTable TO someVariable
>CREATE TABLE someVariable (fields go here etc)

Here, and in many similar situations, "name expressions" can be used:

CREATE TABLE (someVariable) Field1...

The parentheses will force VFP to evaluate the variable.

HTH,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform