Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To Load Form Using String Variable
Message
De
17/10/1997 23:02:55
 
 
À
17/10/1997 21:12:04
Chew Houng Low
Mbf Information Services Sdn. Bhd.
Kuala Lumpur, Malaisie
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00055256
Message ID:
00055262
Vues:
33
>In Form2, create a command button called Command1.
>For command button Command1 On Click Event, I've typed in the following statement:
>
>Dim frm1 as string
>
>frm1 = "Form1"
>load frm1
>
>Then when I run the Form2 and click on command button Command1, error message appear.

If you call it like this, my guess would be that a frm1 has to exist, which is why it is returning an error. What you want here it to load the form Form1 which is contained in the variable frm1. Maybe someone who knows the exact syntax will be able to help you.

In Visual FoxPro, we would use the (frm1) syntax for that. I am not sure about Visual Basic.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform