Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unknown member error
Message
 
 
À
09/06/1997 16:30:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00035661
Message ID:
00035725
Vues:
42
>>>>>>>I have a date field called "dtPurchase" and another called "dtWarranty". I'd like the dtWarranty field to be calculated 1095 days from the dtPurchase date. I put this in the interactive change event of dtPurchase:
>>>>>>>
>>>>>>>ThisForm.txtWarranty.Value=This.Value+1095
>>>>>>>ThisForm.Refresh
>>>>>>>
>>>>>>>I keep getting the error "Unknown member dtWarranty". Can someone please tell me what I'm doing wrong?
>>>>>>
>>>>>>
>>>>>>Something doesn't look right here. What is txtWarranty?
>>>>>
>>>>>
>>>>>I'm sorry - all references to txtWarranty should be dtWarranty (message typo).
>>>>
>>>>what is the textbox name for dtWarranty?
>>>
>>>textbox name is "dtWarranty" the actual db field name is "warranty".
>>
>>is it on a pageframe? in a formset?
>
>It's on a pageframe. I know I'm missing something small, I copied the fields to a formset and it worked but when they are on a pageframe I get the error.
You need to type something like: THISFORM.Pageframe1.Page1.dtWarrenty.Value = THIS.Value+1096
If you type just THISFORM.dtWarrenty.Value VFP you are telling VFP to look for this object on the form itself.
It's "my" world. You're just living in it.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform