Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange - can't save changes made to instance of class
Message
From
31/05/2002 21:31:43
 
 
To
31/05/2002 18:17:50
Jill Derickson
Software Specialties
Saipan, CNMI
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00663703
Message ID:
00663753
Views:
16
>I must be missing something basic here:
>
>VFP 6 & VFP 7
>
>I have a class, GetMonthlyYearControls, w/labels, textboxes and a CommandGroup w/2 buttons, labelled Save and Cancel.
>
>I instantiate the class on a form. I change the "save" button as follows:
>Autosize = .T.
>Caption = "Download"
>Name = "BtnDownload"
>
>I make the changes to the instance of the class on the form, but when I save the form, the changes don't get saved!
>
>Even wierder, as I write this, I sub-class GetMonthlyYearControls to DownloadGetMonthlyYearControls, in the same class library, w/the above changes, instantiate the new class on a form, and the button is the Save version, not the download!
>
>Is there a gremlin in my computer? am I going crazy? can anyone help save my sanity?
>
>J
Hi Jill,

I think you have a corrupted vcx file. If you open the vcx as a table and browse through you will probably find several instances of your form. Your changes are hitting an old version. I have had success cleaning up these messes by 1. First save a copy of the vcx. 2. Carefully go through the table and delete all but one set of records that apply to your specific form. 3. Pack the table. Hopefully you will then have a single version that you can modify.

Good luck!

Ken
Previous
Reply
Map
View

Click here to load this message in the networking platform