Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameter for selecting view
Message
 
 
À
18/10/2001 11:51:20
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00570305
Message ID:
00570313
Vues:
16
This message has been marked as the solution to the initial question of the thread.
>In a form, I want to alternately open View1, View2, or Table1 (the table underlying both views), based on a parameter.
>
>Parameters are accepted in Form.Init(). Form.Load(), or DataEnvironment.OpenTables(), gets called before Form.Init(), right?
>
>Is there any workaround for this situation, other than creating several copies of the form (with inheritance, of course)?
>
>TIA, Hilmar.

For this kind of situation I have variables declared as private in the calling program (form). In this case, they would be seen in Form's Load (not in Init!).

In other words:
Calling program:
private tcFileName, tcMode
tcFileName = "myfile"
tcMode = "Manual

Form.Load
if vartype(m.tcFileName)="C"
...
endif
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform