Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this a BUG??
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00841496
Message ID:
00841680
Views:
21
This message has been marked as the solution to the initial question of the thread.
>I agree but users want when they enter some data button "save data" to be enabled :o(((( . By the way in VFP 6.0 there is no such a problem. I can not try Your suggestion because the project is not infront of me, but I'll try it first thing in the morning.

Borislav,

IIRC, there's was change between VFP6 and VFP7 in how textbox value is updated for entered data that VFP cannot evaluate as correct date. In VFP6 the Value property was set to empty date, in VFP7 and later it's undetermined. You can check if textbox's Value is a date to avoid this error.
thisform.Command1.Enabled = ;
  TYPE("thisform.Date1.Text1.Value") = "D" ;
  AND NOT EMPTY(thisform.Date1.Text1.Value) ;
  AND NOT EMPTY(thisform.OsZp.Text1.Value)
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform