Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form Save as a Class
Message
De
22/11/2000 01:44:29
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00444486
Message ID:
00444495
Vues:
10
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