>If lnCount <= 255 > lcstring = [CREATE TABLE &lcTxt (] > For ii = 1 to lnCount && lnCount has the number of fields in a given table. <b> lcstring = lcstring + ['Field] + transform(ii) + [' c(20),]</b> > 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 valueMinor change in bold above (moved the closing quote). After thge program runs, you should have a table on disk with the name specified in the lcTxt variable.