RaunLGoode
Registered User.
- Local time
- Today, 14:29
- Joined
- Feb 18, 2004
- Messages
- 122
I have a form where the user selects 1 of 4 options. ( A through D)
Depending on the Users selection, a value is stored that is a literal match to the name of one of four forms ( frmA, frmB, etc)
Right now the variable is declared as a string (FormName)
What I want to do is "Show" the correct form using this variable
ie:
FormName.Show
etc...
FormName.Hide
This doesn't work.
Could some more experianced mind tell me what the proper way to do this would be, including what type of variable to declare?
I can't be the first person to try to do this
Thank you,
Depending on the Users selection, a value is stored that is a literal match to the name of one of four forms ( frmA, frmB, etc)
Right now the variable is declared as a string (FormName)
What I want to do is "Show" the correct form using this variable
ie:
FormName.Show
etc...
FormName.Hide
This doesn't work.
Could some more experianced mind tell me what the proper way to do this would be, including what type of variable to declare?
I can't be the first person to try to do this
Thank you,