Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic Tables
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00392511
Message ID:
00392562
Vues:
9
>I am trying to build a table using the following syntax..
>
>AA="("
>FOR I = 1 TO 200
>if i = 200
>AA=AA+'TEMP'+ALLT(STR(I))+' c(25)'
>else
>AA=AA+'TEMP'+ALLT(STR(I))+' c(25)'+' ;'+CHR(13)
>endif
>NEXT
>aa=aa+')'
> CREATE TABLE test &AA
>
>
>Any idea why it doesn't work ?
>Thanks

Adam, try this:

aa = "CREATE TABLE test ("
FOR I = 1 TO 200
IF i = 200
AA=AA+'TEMP'+ALLT(STR(I))+' c(25))'
ELSE
AA=AA+'TEMP'+ALLT(STR(I))+' c(25)'+','
ENDIF
NEXT
&aa
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform