Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to blank date in grid?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00128332
Message ID:
00128859
Vues:
28
>>>
>>>Michael,
>>>
>>>RETURN .F. restores the value of the textbox to what it was b efore the Valid was called, RETURN 0 instead.
>>
>>Thanks, but this change does not seem to work as you advertise in this case (with VFP3.0 - if that matters). When a user enters an invalid date, the invalide date remains - whether I return 0 or .F. - it's just that they cannot get out of the cell until they correct or delete the value manually.
>>
>>Is it possible I need to refresh the displayed value somehow, or is there some mystical changed behaviour of a date cell in a grid????
>
>Michale,
>
>If your textbox is data bound then instead of assign the value property, change the value of the controlsource as in; Alias.Field = { / / }
----------
Jim

I thought that to change the value of the controlsource he would have to issue a replace as in;
REPLACE Alias.Field WITH { / / }

Is your answer to Michale something I wasn't aware of? If so when do you do it that way, instead of using the replace...and why?
Thanks,
Rick
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform