Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does field accept null or not?
Message
 
 
To
09/01/2002 07:36:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00601996
Message ID:
00602536
Views:
25
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform