|
-
Jan 23rd, 2008, 10:56 PM
#1
Thread Starter
Lively Member
[2005] access form by variable or mdichildren
hello all. If i have name of form(frm1) in a variable (frm_str as string), can i access to the variable like the form? or if i already know the parent of frm1, can i access to it by mdichildren?
Ex:
Code:
dim frm_str as string
frm_str=frm1.name
...
...
...
...
...
frm_str.Show 'this is frm1 actually
or
dim frm_str as string
frm_str=frm1.name
frm1.mdiparent=MainForm
...
...
...
...
...
MainForm.MdiChildren(frm_str).show
any idea? many thank for ur help.
-
Jan 23rd, 2008, 11:01 PM
#2
Addicted Member
-
Jan 23rd, 2008, 11:06 PM
#3
Re: [2005] access form by variable or mdichildren
Why do you have a String variable referring to the Name of the form? Why don't you have a Form variable referring to the form itself?
-
Jan 23rd, 2008, 11:15 PM
#4
Thread Starter
Lively Member
Re: [2005] access form by variable or mdichildren
thank u for ur reply. Anyway can i do that?
-
Jan 24th, 2008, 12:55 AM
#5
Addicted Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|