if file('autoinc_test.dbf') drop table autoinc_test endif if not file('autoinc_test.dbf') create table autoinc_test (id autoinc) use autoinc_test for n = 1 to 5 append blank next use endif clear f = new file() f.open('autoinc_test.dbf','RW') f.seek(110) f.write(chr(0xFE)) //2 before transition from positive to negative f.write(chr(0xFF)) f.write(chr(0xFF)) f.write(chr(0x7F)) f.close() use autoinc_test for n = 1 to 5 append blank next use f.open('autoinc_test.dbf','RW') f.seek(110) f.write(chr(0xFE)) //2 before transition from negative to positive f.write(chr(0xFF)) f.write(chr(0xFF)) f.write(chr(0xFF)) f.close() use autoinc_test for n = 1 to 5 append blank next list id,itoh(id) all use