Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replacing only blank fields
Message
From
16/01/2003 20:15:10
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00742691
Message ID:
00742703
Views:
9
>I am trying to code a button that when pressed will look through a field and if it finds any empty fields in the table replace it with a default value.
>I was thinking something like the following but I know it's wrong:
>
>REPLACE ALL table.field with "default_value" where table.field=""

Hi Max,

Depending on your settings for ANSI and EXACT, "" will be equal to every character field. Besides EMPTY() which Hilmar mentioned there are ISBLANK() and ISNULL(). You can read in Help to learn more about all of these.

For an example which shows the differences between EMPTY(), ISBLANK() and ISNULL() see http://fox.wikis.com/wc.dll?Wiki~IsNullIsBlankEmpty~VFP.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform