Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Private datasessions - calling forms
Message
 
 
À
28/07/1998 16:17:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00122104
Message ID:
00122112
Vues:
18
>I'm having a problem with private datasessions in VFP 5.
>
>I use private datasessions in two main forms in my app. One lists executives the other lists firms. I want to be able to click a button on the "executives" form to run the "firms" form and see detailed info about that executive's firm.
>
>The forms are run with the "do form linked" command (do form execs name frmexecs linked). I have a button on the "executives" form that stores the firm name to a field and requeries a view on the "firms" form. If the "firms" form isn't running it first runs it then requeries the view. The problem is that if the "firms" form needs to be run it crashes saying that the view I want to requery isn't open.
>
>I'm sure it's open, but calling this newly run form from another form
>doesn't seem to allow enough time to switch to the private datasession of the "firms" form.
>
>I'm wondering if anyone has had this problem. I'm not sure if it's the "linked" part of the do form command. (I didn't have this problem when I referenced the form with "_screen.forms(x)") or if there's something I'm missing with the private datasessions.
>
>Thanks.
>
>paul
>paul.witt@paragonco.com

Forms with private DS can not see each others data. You have to pass the information from the Executives form to the Firms form. The Firms form then locates the required record before showing the form. If you have an App object, you can add properties to this object to hold the information for you. The Firms form can check the values of these App properties.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform