FOR ix=1 TO alines(laLines,m.lcSample) = alines(laFields, Alltrim(Str(m.ix)) + "|" + laLines[m.ix]) Insert into ("Curs_" + Alltrim(laFields[2]) ) from Array laFields endforafter having created the correctly named and structured tables/Cursors "Curs_MSH", "Curs_EVH" and so on for each line type with a sequential number corresponding to the original line number already thrown in. No need to mess with field/property names at all.