Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Re: Table
Miscellaneous
Thread ID:
00453575
Message ID:
00453581
Views:
18
Try:
If lnCount <= 255
   <b>lcstring = [CREATE TABLE ] + alltrim(lcTxt) + [(]</b>
   For ii = 1 to lnCount
       lcstring  = lcstring + <b>trim(eval(Field(ii))</b> + [ c(20),]
       if ii = lncount then
          * strip off last ","
          lcstring = left(lcstring,len(lcstring)-1)
       endif
   EndFor
   lcstring = lcstring + [)]
   &lcstring
Endif
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform