Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loading a form through a string variable
Message
From
03/09/1997 16:08:59
 
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00047342
Message ID:
00048356
Views:
27
>Hi,
>
>I don't think there's anyway to do such a thing. Also I don't think that one needs to do such a thing.
>
>Regards,
>Hitesh
>
>>>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?

Hitesh,

You may be correct in that it cannot be done -- but I do have a reason to do it.

I am trying to develop a framework whereby users would only need to know how to enter strings -- not how the wizard chains together the forms. So to create a wizard, they draw and program their forms, add the wizard module to their project, type in a few strings, and off it goes (grossly simplified version :-) ).


I've looked at the VB5 wizard wizard, and it seems unnecessarily complex, and from that springs my desire to create this framework for use within our organization.
Previous
Reply
Map
View

Click here to load this message in the networking platform