Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loading a form through a string variable
Message
 
À
28/08/1997 11:09:02
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00047342
Message ID:
00047405
Vues:
27
>Hello all,
>
>Is there any way to load a form through a string variable that contains the name of the form?
>
>I can't be sure that the form is loaded, so the Forms collection doesn't help :-(
>
>Thanks in advance for any help.

The only way I can think of is with a Case statement

Select Case sFormName
Case "frmThis"
Show.frmThis
Case "frmThat"
Show.frmThat
End Select

not pretty, eh?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform