Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fatal Error on Class
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00521439
Message ID:
00521470
Views:
21
Thanks again, Vlad.

It worked just fine.

I think I own you a couple beers ...... :)

Thanks again and again,

Alonso



>Hi!
>
>Tree View control is VERY sensitive to the approaches you use to work with its objects. I met a lot of similar problems in past and ended up with forgetting to use the With and For Each loop. Remove With statements and instead of FOR EACH loop use
>
>for i=1 to ...nodes.count
>  if ...nodes(i).Key = ...
>  endif
>endfor
>
>
>>Hi,
>>
>>I´m developing a few generic classes, but when I was almost finishng the most important one, I started to get an error that terminates my debugging and closes VFP. I wrote down the error details:
>>
>>Fatal Error: Exception code=C0000005
>>Called from - myclass.treeview.nodeclick line 134 {c:\classes\classlib.vct}
>>
>>The code on the nodeclick event is this:
>>
>>
>>132: FOR EACH oPrivNode IN .tvwPrivs.NODES
>>133:
>>134:    IF (oPrivNode.KEY == xNodeKey)  && here is the error
>>135:							
>>136:       xFound = .T.
>>137:       EXIT							
>>138:							
>>139:    ENDIF
>>140:
>>141: ENDFOR
>>
>>
>>What am I doing wrong?
>>
>>TIA
>>
>>Alonso.
Like Frank said: "I did it... MY WAY!"
Previous
Reply
Map
View

Click here to load this message in the networking platform