Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Thisform. thisformset.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00020344
Message ID:
00020408
Vues:
41
>>>when i put 'thisformset.form1', vfp3 says that i havent a n object called FORM1... i have it....
>>>
>>>what can i do?
>>
>>Check Form.Name property, first. Your code assumes that you are inside a formset which includes form with Name="form1".
>
>Well, don't forget your actual SCX form is the top level. I found that I had to use test.form1 (test being the name of my form--TEST.SCX). I was very confused for a while because I have formset1, too. I thought you just had to say formset1.form1 like you are trying. But that just isn't the case it seems. I could just be missing a piece of the puzzle, but I got test.form1 to work. Maybe test.formset1.form1 is also proper? And it all really depends on where and when you're trying to reference the form. Object scope is a bit tricky in VFP!!

yes. you can rename the formset, but can't rename the forms in a formset (it'll always name them form1, etc.). thisformset.form1.xxxxx should be fine
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform