Environment versions
Network:
Windows 2003 Server
>Hi everybody,
>
>I have a ZipCityStateCounty container based class. In this class there are labels and textboxes and combobox for the city. The labels were originally named as Label1, Label2, etc.
>
>They were all set to AutoSize.
>
>I renamed the labels to lblZip, lblCity, etc.
>
>I did nothing else, yet I found that on the form where I had the instance of this class (which had the different size of the top container), the labels were all on the wrong place now.
>
>I had to Edit both forms and in both of them adjust the labels positions.
>
>Was it a result of my renaming the labels? Does it mean that all instances of this class in all forms will have to be checked now?
>
>I made bunch of changes in this class today - is there a way to save all my changes except for renaming? Would renaming labels back solve the problem?
>
>Thanks in advance.
Sure! This is by design.
If you rename a member M of a class C with the new name for N,
in each VCX/ SCX where you have used C,
all the properties/methods on M are lost.
This is because VFP saves them as M.property
and therefore can not bind M. a N.
In VFP you must guess the names at the first shot,
or have an much more powerful editor classes.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only