Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cyclic definition ?
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Cyclic definition ?
Miscellaneous
Thread ID:
00698836
Message ID:
00698836
Views:
68
Could anyone shed a light on this one please :

We have two VCX files. Say Main and Sub. Main contains top level class definitions, and Sub contains definitions based on classes in Main.
As I found today, in one case a definition in Main depends on a definition in Sub that depends on a definition in Main. This was done by coincidence, and via drag and drop. Here is the structure :
clTbrMenLbl        (in Main)
  clRaDat1         (from Sub) Note the "1" and the "class" being clRaDat actually.
    LblText        (from originally Main BUT now from clRaDat in Sub)
    LbLTextULine   (new object added to clRadat1 in this clTbrMenu class)
To be clear : the clRadat class from Sub was dragged onto cltbrMenLbl in Main.

I broke my brains on this one when I encountered it at browsing the VCXes. All looks right but :

This happens to be the exact place where the VCX gets "corrupted" when loading it into VFP7 and adjusting a method from clRaDat1 (see the other thread "Compatibility report 5-7" thread #697466). But what's corrupted here ?
It's not the memo (Methods field) because I just can see it, while VFP7 and VFP5 won't show the memo's from ClRadat1 anymore, except for the Init method (being the first PROC in the Methods Memo).

Please note that I already installed W2K SP3 over SP1, so it can't be that anymore. In addition to the status of a few days ago - "Main.VCX is not an object file" at editing the clTbrMenLbl class from VFP5 - today VFP5 could load it again. But ... also exactly the same started to happen as the few days ago : an adjustment from VFP7 to a clRadat1 method, just wouldn't come through.

Notes : I am sure nothing was edited from VFP5 (just try-and-look), and the running app can't find the methods anymore either (it's MouseMoves, MouseUp, MouseDown so all keeps on running without real error).

Q: Did I define a cyclic relation here ?
And could it be so that VFP5 could deal with that, whereas VFP7 can't ?

I am really confused on this one, because I really can't see the difference in both VCX and its Memos, between the working backup and the adjusted file, but for the deleted records which are in the adjusted file because of changeing the method without effect.

TIA,
Peter
Next
Reply
Map
View

Click here to load this message in the networking platform