Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Save as a Class
Message
 
 
To
22/11/2000 01:44:29
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00444486
Message ID:
00444526
Views:
9
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.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform