>>Let me double check. In the meantime, how can I specify default value for the field in CA? I'm using Mark McCasland's CA Builder.
>You could use ConversionFunc:
>
>this.ConversionFunc [FieldName this.SetDefalut]
>
>*** SetDefalut method
>LPARAMETERS leMyField
>IF ISBLANK(FieldName) && Not parameter use field, because ISBLANK always will return .f.
> RETURN (default_value_here)
>ELSE
> RETURN leMyField
>ENDIF
>
>
>But this is not tested at all.
Interesting, let me try. I'm wondering if this was never discussed before? Sure there has to be a simple way of specifying default values for the fields in CA. (Using VFP as back-end).
Search here didn't produce lots of results, so it looks like your way is the way to go.
If it's not broken, fix it until it is.
My Blog