Page 1 of 1

Default Value

Posted: 11.10.2008, 14:03
by osvaldotcf
How i get the default value for a field from db?

My application is in lazarus.
I want the default values for the fields when an user initiate an insertion.

Thanks

Posted: 13.10.2008, 07:58
by seawolf
Try this function:

ZTable1.DbcResultSet.GetMetadata.GetDefaultValue(x)

where x >= 1 and x <= ColCount