Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble with Refresh
Message
De
16/12/1996 12:54:23
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00015225
Message ID:
00015238
Vues:
33
>>I've got a form with a pageframe on it. This pageframe contains a lot of pairs of text boxes, one for the last date and one for the next date. I set the value of nextdate based on the value from lastdate through a simple NextDate method.
>>
>>My problem is when the form refreshes, the nextdate textbox refresh() errs out. I've traced into it and found that "this" is a form instead of a textbox, so there is no "value" associated with it. The part that confuses me is that the form only errs out on the first nextdate textbox. All the others refresh fine.
>>
>>The refresh method contains code like the following
>> If this.value = date()
>> this.backcolor = ....
>> endif
>>
>>Any suggestions?
>>
>>TIA
>>
>>Greg Carter
>>Wichita Falls State Hospital
>
>does vfp know that this textbox is a date? it might be trying to compare a text field to a date -- trouble...


VFP knows that it is a date. I initially populate it with { / / }. As far as I can tell, when the refresh method for the textbox runs, vfp thinks that "this" is a form instead of a textbox.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform