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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error by putting a class to my form

Status
Not open for further replies.

INFORMAT

Programmer
Jan 3, 2001
121
BE
Hello,

I have designed a class that is based on a grid.
When I put my class on the form I receive the following error: 'Error instantiating the object'.

Can somebody tell me how I can solve this problem ?

Thanks for yout time and answer

Informat CV
Devriendt Nico
 
The class you have built is not self dependent for some of the variables. The class may be having reference to something, which you used while creating it, but not available within the form where it is used. So the solution is... look into all the elements.. variables, properties, procedures called in the class and just verify that all these are available in the context of the form.

Also any reference to the grid itself, shall be 'This.' to avoid any other name you could use in the form for the class. Also, if the grid is bound to some data, make sure that the DBF is available in the form.

Hope this solves your problem :)
ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
 
When you get the message "error instantiating the object", it could be that the data source for your grid is not available at the moment of instatiation.

Check if the data source is available when the init of the grid is issued.

HTH,
Weedz (Wietze Veld)
veld4663@exact.nl
The Netherlands

They cling emotionally to code and fix development rather than choosing practices based on analytical assesments of what works best.

After the GoldRush - Steve McConnell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top