Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>>
>>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement