Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6 pass form parameter to open table
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00413715
Message ID:
00414037
Vues:
17
You can open the table in the init and then do a ThisForm.Refresh(). That usually works for me unless the table is being used in a grid.

OTOH, why not open the table before you release formone? Just don't CLOSE ALL on your way out.

>Hi All,
>
>I am trying to pass a variable from "formone" to use to open a table in "formtwo".
>
>This is in a command.click on formone and, appears to be successful:
>
>command.click()
>Thisform.release
>mtable = ThisForm.Hstxttable.value
>do form hsfrmsynarchive with mtable
>
>This is in formtwo.init() and appears successful:
>
>formtwo.init()
>lparameters mtable
>thisform.r_synfile = mtable
>
>
>The problem is the formtwo.load() completes before the formtwo.init() and therefore I can't use the 'thisform.r_synfile' property to determine which table to open in the formtwo.load().
>
>Is is possible to load the tables in the formtwo.init() or are there other ideas which would allow me to open the selected table?
>
>T.I.A.
>
>Jim Harvey
>jharvey@netrax.net
-cjh
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform