Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot insert empty row (CA problem)
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01159031
Message ID:
01159057
Views:
26
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform