The question on the DataType = ftInteger. why?
The question on the DataType = ftInteger. why?
Hello, visit access the database, a table of a field data type is automatically numbered, with TADOConnection, TADOQuery access, the return DataType = ftAutoInc,
but with TUniConnection, TUniQuery visit but return is ftInteger, somehow?
but with TUniConnection, TUniQuery visit but return is ftInteger, somehow?
-
AndreyZ
Thanks to reply, because the import data, the "auto-numbered" fields are not imported, if the auto-numbered fields and integer fields are usually shown as ftInteger, rather than ftAutoInc and ftInteger, which can not be confirmed Need to skip, which need to fill in the data.AndreyZ wrote:Hello,
It's a standard UniDAC behaviour. Please describe why you need this functionality.
-
AndreyZ
You can use the following code to determine if a field is autoincrement:Note that you should add the CRAccess unit to the USES clause of your unit.
Code: Select all
TCRFieldDesc(UniQuery.GetFieldDesc('fieldname')).IsAutoIncrementThanks!AndreyZ wrote:You can use the following code to determine if a field is autoincrement:Note that you should add the CRAccess unit to the USES clause of your unit.Code: Select all
TCRFieldDesc(UniQuery.GetFieldDesc('fieldname')).IsAutoIncrement