Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To Load Form Using String Variable
Message
From
17/10/1997 21:12:04
Chew Houng Low
Mbf Information Services Sdn. Bhd.
Kuala Lumpur, Malaysia
 
 
To
All
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
How To Load Form Using String Variable
Miscellaneous
Thread ID:
00055256
Message ID:
00055256
Views:
67
>>I've a problem on loading a form where the form name is contained in a string variable.
>
>Why isn't use the form name property? If this is for a multilingual issue or where the form name property need to be generated at load time, you may assign the form property at load time from your variable.

I'm sorry that I didn't send the detail information regrading my problem.
Here goes :

I've created a form named Form1. I then create another form called Form2.

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.

-----------
The above scenario is just telling I want to call form using variable.
The purpose I want to do this is to have a table storing all my form name and to call all these
form by using grid control. This will help a lot when project enhancement comes where you
don't need to create buttons or screens to call all the new forms.

If any one of you guys know how to solved this problem, please send me a mail with example.

Thanks.
Low Chew Houng
MBf Information Services Sdn. Bhd.
Subsidiary Of MBf Group Of Companies
chewhoung@yahoo.com
Next
Reply
Map
View

Click here to load this message in the networking platform