Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which class is used if 2 classes have same name in class
Message
From
24/05/2016 17:00:58
 
 
To
21/04/2016 07:49:45
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01634985
Message ID:
01636750
Views:
65
>>Thanks Lutz,
>>
>>I don't know how a second class got in there. Deleted the obsolete one.
>
>If a classlib was hacked, i.e. opened as a table and then records manipulated (like I had to do today, after so many years), everything's possible. Also possible that you don't remember because it was done years ago and you noticed now.

Dragan,

Good guess I think. I hacked the vcx a long time ago while re-engineering classes. Obviously something invalid was left there by mistake, but since VFP apparently uses the class version defined LAST within the vcx ( strange but true ! ), and that class worked well, I didn't notice the problem. Recently, when I used Fernando's excellent foxbin2prg in a round trip (bin2text and then text2bin) it apparently selected the class version defined FIRST in the VCX as the valid class. That class had an error and it showed up. Just deleted the incorrect class.

Thanks to all. Sorry I didn't answer sooner.

Alex
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform