Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing Object Reference to Form vs Passing paremeters
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00330406
Message ID:
00330669
Views:
19
>I have quite a few instances where I call a form from another form and the called form needs access to some of the properties and/or control values of the calling form. I have decided to just pass one parameter to the called form, an object reference to the calling form, rather than sending the multiple values the called form needs.
>
>Is there a downside to doing this? Is this a good way to do this?
>
>Thanks,
>Paul

Actually, you don't even have to pass a reference... in the init of your child form you can put code like...

This.oCallingForm = _Screen.ActiveForm

BOb

As Travis said... since you are doing this, you should make the form modal... this way, you won't have the user trying to close the form which is referenced by your second form.
Previous
Reply
Map
View

Click here to load this message in the networking platform