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)
>135:
>136: xFound = .T.
>137: EXIT
>138:
>139: ENDIF
>140:
>141: ENDFOR
>
>
>What am I doing wrong?
>
>TIA
>
>Alonso.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.