Oct 14, 2001 #1 mkuan Programmer Sep 19, 2001 69 CA Hi, everyone. Can I pass an object(e.g. form) of an ActiveX EXE to another ActiveX EXE, so that I extract value/s that belong to the 1st ActiveX EXE? If yes, how? Thx. mkuan
Hi, everyone. Can I pass an object(e.g. form) of an ActiveX EXE to another ActiveX EXE, so that I extract value/s that belong to the 1st ActiveX EXE? If yes, how? Thx. mkuan
Oct 14, 2001 #2 JohnYingling Programmer Mar 24, 2001 3,742 US Try passing an AS OBJECT variable. Code: Dim objF as object Set objF = formwhataever call activex2 objF http://www.VBCompare.comhttp://www.VBSortGen.com Upvote 0 Downvote
Try passing an AS OBJECT variable. Code: Dim objF as object Set objF = formwhataever call activex2 objF http://www.VBCompare.comhttp://www.VBSortGen.com
Oct 14, 2001 Thread starter #3 mkuan Programmer Sep 19, 2001 69 CA I did try to pass the form of 1st ActiveX EXE to the 2nd ActiveX EXE as object. In the 2nd ActiveX EXE, I have the following: Public Sub ShowPassData(objForm as Object) Msgbox objForm.Caption ' as an example End Sub But I got a message saying "Object doesn't support this property or method." Oh, thx for the reply. mkuan Upvote 0 Downvote
I did try to pass the form of 1st ActiveX EXE to the 2nd ActiveX EXE as object. In the 2nd ActiveX EXE, I have the following: Public Sub ShowPassData(objForm as Object) Msgbox objForm.Caption ' as an example End Sub But I got a message saying "Object doesn't support this property or method." Oh, thx for the reply. mkuan