Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Valid event fire by itself.
Message
From
27/03/1998 14:11:09
 
 
To
26/03/1998 11:34:21
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00086285
Message ID:
00087761
Views:
60
>I will not be able to validate the entry at all if the user did not enter anything. Example, checking for the field not empty() will not work.
>
>Any ideas??


DO CASE
CASE GETFLDSTATE("CurrentFld")=1
=MESSAGEBOX("Field has not been edited or deletion status has not chnged.")
CASE GETFLDSTATE("CurrentFld")=2
=MESSAGEBOX(Field has been edited or deletion status has changed.")
CASE GETFLDSTATE("CurrentFld")=3
=MESSAGEBOX("This means New and Empty")
CASE GETFLDSTATE("CurrentFld")=4
=MESSAGEBOX("Field in an appended record has been edited or deletion status has changed for the appended record.")
ENDCASE &&(from VFP Help)

So "If the user did not enter anything", the return value of GETFLDSTATE is 1 or 3.

>
>Also, I've noticed that when I append blank from the grid, sometimes it replace the new field value with the previous record value instead of blank. Any penny for thought ???

I'm not sure why but I think it's better update or revert table after validate the entered value.
Previous
Reply
Map
View

Click here to load this message in the networking platform