[轉貼]【問題】如何判斷autoincrement
發表於 : 2008年 11月 27日, 18:09
我有一個TTable 連接到一個paradox 的資料表 其中一個欄位是autoincrement
在程式中要如何判斷TTable 中某一個欄位是否為autoincrement呢?
請使用 DataType 判定是否為 ftAutoInc
在程式中要如何判斷TTable 中某一個欄位是否為autoincrement呢?
請使用 DataType 判定是否為 ftAutoInc
代碼: 選擇全部
if Table1.FieldByName('NO').DataType=ftAutoInc then
begin
. .
end;