|
-
Jan 13th, 2005, 02:00 PM
#1
Thread Starter
Ya ya Baby!!!Me is Back
Cast
Hi,
I need to cast a FORM that implements something to his original form to get its procedures. How can I do that?
-
Jan 13th, 2005, 02:46 PM
#2
Re: Cast
 Originally Posted by Daok
Hi,
I need to cast a FORM that implements something to his original form to get its procedures. How can I do that?
I have no clue what you are trying to do specifically, but in general, you can do a kind of (void *) cast in VB by "Set"-ing an Object = to an object of type "Object":
VB Code:
Dim frmThing as Form
Dim objThing as Object
'
Set objThing = frmThing
'
' From here, objThing is treated as a generic Object, and will be Late-Bound.
-
Jan 13th, 2005, 02:48 PM
#3
Re: Cast
 Originally Posted by Daok
Hi,
I need to cast a FORM that implements something to his original form to get its procedures. How can I do that?
Dim frm As Form
Set frm = New Form1
frm.Show
You may want to set Caption, Tag for each new instance so you can differenciate between the forms code wise.
-
Jan 13th, 2005, 03:43 PM
#4
Thread Starter
Ya ya Baby!!!Me is Back
Re: Cast
Thank you guys,
Rhino solution work like a charm! (Thx Dave, you had the theory of what I want).
Bye!
Daok
-
Jan 13th, 2005, 03:48 PM
#5
Re: Cast
No problem, you're welcome.
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
|