Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot insert empty row (CA problem)
Message
 
 
À
03/10/2006 15:02:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01159031
Message ID:
01159057
Vues:
27
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform