Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Private datasessions - calling forms
Message
 
 
À
28/07/1998 16:45:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00122104
Message ID:
00122122
Vues:
17
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform