Subject Re: [IBO] "Default" Value for a Field
Author Lucas Franzen
Daniel,


Daniel Albuschat schrieb:

> Hello,


[snipped an advanced way of shooting oneself in the foot]


> Is there another way to do this without the drawback
> mentioned above?

Open the QueryEditor, go to the FieldProperties TAB, prepare the query,
click on the field in question and enter your default value in the
DefaultValue edit.

If you like, you can do this also in the code (DefauktValues is just a
TIB_StringList property).

If you use domains and want automatically have default values for cerain
domains set these properteis of your TIB_Connection:

FieldEntryTypes.fetDomainNames = TRUE
DefaultValues: YOUR_DOMAIN=DEFAULT_VALUE

for example:
MY_LASTNAME=Albuschat
MY_FIRSTNAME=Daniel

;-)

HTH

Luc.