Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Stefan Wuebbe
  Where is Stefan Wuebbe?
 Hamburg
 Germany
 Stefan Wuebbe
 To: Sithu Kyaw
  Where is Sithu Kyaw?
 Yangon
 Myanmar
 Sithu Kyaw
 Tags
Subject: RE: Error instantiating class
Thread ID: 365148 Message ID: 365259 # Views: 35 # Ratings: 0
Version: Visual FoxPro 9 Category: Classes and Objects
Date: Sunday, December 23, 2012 11:02:32 AM         
   


> I have a library file, for example, "c:\vfp\myapp\library\mycontrols-1.0\mycontrols.vcx".
> Many custom controls of the class has been using in my application ( controls were added in design mode )
> I renamed the folder name to "mycontrols-2.0". The purpose is whenever I update the class, I want to make a version.
> When I modify the forms, I got the error "Locate class: Error instantiating class..." .
> I got to locate the class by selecting the correct folder.
> It is ok for just one time. After I closed and re-opened the VFP designer, I had to relocate the class.
>
> I has been thinking how can I control this folder naming. No fix found until now.
> Is there any fix for this?
> Is there any command to update the class library path at one goal by running in the command window?
>
> ----
> Rgds/Sithu



Both ways in Rick's advice as well as Tamar's suggestion do work in practice. Your description sounds as if you might perhaps have forgotten to save the result in the designer (Ctrl+S or Ctrl+W for example)




hth
-Stefan

ENTIRE THREAD

Error instantiating class Posted by Sithu Kyaw @ 12/21/2012 4:15:28 PM
RE: Error instantiating class Posted by Rick Hodgin @ 12/21/2012 4:28:01 PM
RE: Error instantiating class Posted by Sithu Kyaw @ 12/21/2012 4:46:11 PM
RE: Error instantiating class Posted by David Mustakim @ 12/21/2012 4:50:38 PM
RE: Error instantiating class Posted by Rick Hodgin @ 12/21/2012 4:50:41 PM
RE: Error instantiating class Posted by Sithu Kyaw @ 12/21/2012 4:59:25 PM
RE: Error instantiating class Posted by David Mustakim @ 12/21/2012 5:08:58 PM
RE: Error instantiating class Posted by Sithu Kyaw @ 12/22/2012 5:31:59 AM
RE: Error instantiating class Posted by David Mustakim @ 12/22/2012 6:09:59 AM
RE: Error instantiating class Posted by Sithu Kyaw @ 12/22/2012 7:11:06 AM
RE: Error instantiating class Posted by David Mustakim @ 12/22/2012 7:43:49 AM
RE: Error instantiating class Posted by Sithu Kyaw @ 12/22/2012 10:40:17 AM
RE: Error instantiating class Posted by Rick Hodgin @ 12/22/2012 5:29:00 PM
RE: Error instantiating class Posted by Sithu Kyaw @ 12/23/2012 6:30:09 AM
RE: Error instantiating class Posted by David Mustakim @ 12/23/2012 10:46:05 AM
RE: Error instantiating class Posted by Sithu Kyaw @ 12/23/2012 11:37:37 AM
RE: Error instantiating class Posted by Samir H. @ 12/23/2012 1:31:38 PM
RE: Error instantiating class Posted by David Mustakim @ 12/23/2012 6:44:38 PM
RE: Error instantiating class Posted by David Mustakim @ 12/22/2012 6:25:48 AM
RE: Error instantiating class Posted by Tamar Granor @ 12/21/2012 11:01:38 PM
RE: Error instantiating class Posted by Sithu Kyaw @ 12/22/2012 5:13:38 AM
RE: Error instantiating class Posted by David Mustakim @ 12/21/2012 4:48:39 PM
RE: Error instantiating class Posted by Stefan Wuebbe @ 12/23/2012 11:02:32 AM