Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing params (correct content)
Message
 
To
02/03/1998 05:28:21
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00081635
Message ID:
00082198
Views:
42
>Snip...
>>Hello Again,
>>
>> I found my problem. The forms in this case are based on a class contained in a vcx then turned into a project form using New/New Form and dropping the form class from the toolbar. Problem is, I forgot to remove the formset after removing the default form1 from the form designer. So, while reading about PARAMETERS, it makes the statement "It must be the first executable statement in the called object". Since it actually is a formset, the formB Init is not first,
>>formsetB Init is first. Just another case of proceduralitis on my part.
>>
>>Thanks for the tip on passing the THISFORM reference.
>>
>>Eric Kleeman
>Eric just another tip, you could pass thisform to pass a reference to FormB, but the reverse needs "name" clause.
>
>* Case 1
>*formA
>do form formB with thisform     && Just pass thisform ref to formB
>...
>* FormA is clicked or called from formB - formB still open
>* Want to click or change a value in formB - there is no reference to formB
>
>* Case 2
>*formA
>do form formB with thisform  name "formBReferenced"  && Pass thisform ref to formB and also have a reference to formB
>...
>* FormA is clicked or called from formB - formB still open
>formBReferenced.text3.value = "Newvalue"    && We have a ref to formB now
>formBReferenced.cmdDummy.click
>...
>do form formC  && Another form is called
>*FormC
>formBReferenced.text3.value = "FormC changed this"  && Even another form has a ref to formB
>
>
>Cetin
Korp Koon Kahp (Thank you mr. Cetin)
Previous
Reply
Map
View

Click here to load this message in the networking platform