Original Post
In VB is it able to pass a object to other objects? Do I have to reference it, such as a header file?
//////////////---------------------------------
Option Explicit
Dim ConnectionObject As adoConnection
Public Sub Start_Program()
Set ConnectionObject = New adoConnection
ConnectionObject.Create_Connection
Call Control_Main
End Sub
Public Sub Control_Main()
End Sub
Public Sub Open_Form(FormType As Integer)
HttpForm.Show
HttpForm.Add_List (ConnectionObject)
End Sub
//////////////---------------------------------
Option Explicit
Public Sub Add_List(adobject As adoConnection)
MsgBox "hello"
End Sub
the error is: "object does not support this property or method
please help
Thanks.
Edited by - k_hole9 on December 17, 2001 12:05:26 AM