Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does field accept null or not?
Message
 
 
À
09/01/2002 07:36:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00601996
Message ID:
00602536
Vues:
21
>>Hi everybody,
>>
>>Is where a way to check, if field does accept null or not without afields and ascan?
>>
>>Thanks in advance.
>
>Hi Nadia
>
>Sorry, the only way I know (other than AFIELDS()) is to use a little function that:
>
>Disables error handling
>Saves the current value of the field
>Tries to store a NULL to it
>Restores the original value
>Restores error handling
>
>Not difficult stuff, but a lot of effort <g>

Right. Fortunately for the project, I thought, I needed this check, I found, what I don't really need it after all. Otherwise I would probably use first approach. Still, it's too bad, that not all field properties could be found by dbgetprop() function.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform