Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form Save as a Class
Message
De
22/11/2000 07:12:53
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00444486
Message ID:
00444529
Vues:
10
Hi Larry,

Sorry for the confusion. I am actually trying to access another object with the same hierarchy level within the same page. With the DO FORM method of initializing the form I do not have any problem.

Regards,
Kueh.


>Kueh,
>I'm not sure I understood that. Are you trying to reference the value of a textbox from its own Init using its entire object hierarchy?
>
>Ex.
>In textbox Init
>somevariable = THISFORM.Pageframe1.Page1.TextControl1.Value
>
>If so this is probably your problem. Before the Init completes for the textcontrol, it doesn't exist within the scope of the pageframe. External entities (and it looks like you are referencing it as an external entity) do not have access to it. Try using THIS.Value in the Init.
>
>HTH.
>
>>Dear David,
>>
>>I do not use the data environmnent and my controls are not bound to any controlsource. My problem is that any command in the INIT method that reference "thisform.pageframe.page1.textcontrol.value" would cause an error. When I take a look in the Debugger the object can only be evaluted up to the "thisform.pageframe" level and beyond this it seems that it is not initialised yet. Strange since the INIT method is called from the "textcontrol". BTW the control that I have is a text box that itself is a subclassed. Could this be the problem?. Thanks.
>>
>>Regards,
>>Kueh
>>
>>>Kueh,
>>>
>>>When you saved the form as a class you lost the data environment, so none of your controls will be able to bind to their ControlSource values. You'll have to use either a PRG based data environment class or USE all the necessary tables in the form.Load.
>>>
>>>>I have form that has a pageframe and this works fine if i call it via the "Do FORM". Since I have save this form as a Class. I get error in the INIT method of object inside the pageframe complaining that the pages object does not exists. Can someone help me here? Thanks.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform