Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object Instantiation Problem in VB 6

Status
Not open for further replies.

RushiShroff

Programmer
Jan 23, 2002
216
0
0
IN
VB 6
On my PC-Widows 95,it is not supporting
object instantiation method by

Code:
Private ObjectVar as ObjectType
set objectvar = New ObjectType

or

Code:
Private ObjectVar As New ObjectType

I have to create object by

Code:
Private ObjectVar As Object
set ObjectVar=CreateObject("ProjectName.ClassName")

Why is this problem ?

Rushi Shroff
 
Hi,

Try setting the Instancing property to MultiUse.then It should work.Let me know what happens.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top