Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Re: Table
Divers
Thread ID:
00453575
Message ID:
00453698
Vues:
21
>Hi All:
> I am able to get the value into the lcstring correctly,however, it is not creating a table with specificed number of fields. Here is my code. Can someone please help me out.
>
>If lnCount <= 255
> lcstring = [CREATE TABLE &lcTxt (]

Change this to:

lcstring = [create table (lctxt) (]

> For ii = 1 to lnCount && lnCount has the number of fields in a given table.
> lcstring = lcstring + ['Field' ] + transform(ii) + [ c(20),]
> if ii = lncount then
> * strip off last ","
> lcstring = left(lcstring,len(lcstring)-1)
> endif
> EndFor
>
> * add trailing parenthesis for Create Tabel command
> lcstring = lcstring + [)]
> &lcstring && I don't know where to go from here, lcString does have the value
>Thanks
>MA
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform