Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check for a field with no data?
Message
From
27/07/2003 21:08:10
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
 
 
To
27/07/2003 18:42:42
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00813927
Message ID:
00813970
Views:
8
Hi Cindy:

Thank you for your kind response. I will implement this too.

>"...any one one of the 3 fields in a table has data. If it does then, disable the enter Data button to allow Edits only..."
>
>If I understand your goal, your code will not run correctly. Say mPersonalData is not empty and you disable cmdEnterData. Then you go to the next IF statement and mPastHist is empty. Here you enable cmdEnterData, but you really should leave it disabled since mPersonalData was not empty.
>
>Here's code that is more concise and will enable the cmdEnterData button only when all three fields are empty.
>THISFORM.cmdEnterData.Enabled = ;
>	EMPTY(curPatientSummary.PersonData) AND ;
>	EMPTY(curPatientSummary.PastHist) AND ;
>	EMPTY(curPatientSummary.Allergies)
>
>Finally, set your mUpdatePatSummary:
>mUpdatePatSummary = NOT THISFORM.cmdEnterData.Enabled
>
>
- Ravi

True greatness consists in being great in little things.
- Charles Simmons
Previous
Reply
Map
View

Click here to load this message in the networking platform