Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To Load Form Using String Variable
Message
From
17/10/1997 23:02:55
 
 
To
17/10/1997 21:12:04
Chew Houng Low
Mbf Information Services Sdn. Bhd.
Kuala Lumpur, Malaysia
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00055256
Message ID:
00055262
Views:
28
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform