Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is this a BUG??
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00841496
Message ID:
00841680
Vues:
22
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform