USE Mytable * The number of columns in a table lnMaxColNum = FCOUNT() * Now find the filed number for specified column lcColName = "FIELD1" lnColNum = 0 FOR i=1 TO lnMaxColNum IF FIELD(i) == lcColName lnlnColNum = i EXIT ENDIF ENDFOR IF lnlnColNum > 0 * the column number is in lnlnColNum ELSE * No such column ENDIFor you can use combination of AFIELDS() and ASCAN