Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Private datasessions - calling forms
Message
 
 
To
28/07/1998 16:45:48
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00122104
Message ID:
00122122
Views:
18
>I think that's what I'm doing. Here's my code:
>
>lcAlias = thisform.DataEnvironment.InitialSelectedAlias
>if !wexist("frmFirm")
> oApp.doForm("firms","frmFirm")
>endif
>if type("frmFirm") = 'O' and !isnull(frmFirm)
> frmFirm.lnfirmid = 0
> frmFirm.lccompany = alltrim(&lcalias..company)
> frmFirm.lcparent = ' '
> frmFirm.lcultcomp = ' '
> frmFirm.newalias = 'f_main_company'
> frmFirm.switchviews
> frmFirm.pageframe1.activepage = 2
> frmFirm.show
>endif
>
>I'm calling methods in the "firms" form. This code also works if the "firms" form is already open.
>
>paul

You instanciate the form first which has no information about what firm to display data for. The controls are already bound. Then you set the information in Firms based on what was selected in Executives. Somewhere in Firms you have to execute a method to find the correct record and refresh the data in that form. I assume frmFirm.SwitchViews does not do that for you.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform