Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Rick C. Hodgin
  Where is Rick C. Hodgin?
 Indianapolis
 Indiana - United States
 Rick C. Hodgin
 To: Dan Baker
  Where is Dan Baker?
 Effort of the Poconos
 Pennsylvania - United States
 Dan Baker
 Tags
Subject: RE: Modifying Class and PEM Names
Thread ID: 373846 Message ID: 373848 # Views: 63 # Ratings: 1
Version: Visual FoxPro 9 Category: Classes and Objects
Date: Wednesday, March 27, 2013 8:43:26 PM         
   


> Foxites,
>
> I inserted some code on top of a custom class method in my form.
>
> When I then went back into the class to modify the name of the method, my form object's code for the renamed method.
>
> Is there some way to get around this behavior so the object overlay code is not lost when the class method names are changed?
>
> Thanks,
>
> Dan Baker



The only way I've known to do this is go into the myForm.scx file manually and make the change.

USE myForm.scx
BROWSE FOR LOWER(class) = "old_class_name" NOWAIT LAST


Then go in and make your changes.

According to Tamar Granor, there are some refactoring abilities in Thor. I have not researched them, but they may be able to do this automatically for you.

Best regards,
Rick C. Hodgin

ENTIRE THREAD

Modifying Class and PEM Names Posted by Dan Baker @ 3/27/2013 8:35:48 PM
RE: Modifying Class and PEM Names Posted by Rick Hodgin @ 3/27/2013 8:43:26 PM
RE: Modifying Class and PEM Names Posted by Tore Bleken @ 3/28/2013 1:43:57 PM