Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing NULL values and NULL indicator from a table
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01123353
Message ID:
01123358
Views:
19
See AFIELDS() function. The 5th column in the array created stores Nullable setting for a column.

>Kind of a long story - but - I was having trouble getting a .dbf to be the data source of a mail merge. Word came back with "Word was unable to open the data source". When I looked closer at the table in the data session, I noticed that the date fields were marked as nullable. When I removed that check, then Word Mail Merged my table. None of the fields values were actually NULL, just the indicator that they could be NULL stopped the merge.
>
>So ... I want to put some generic code together that will read any .dbf, field by field, and determine if the value is null to set to EMPTY, and to set to NOT NULL. Can someone get me started?
>
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform