Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TreeView.HitTest returns invalid reference
Message
From
03/03/2004 03:38:14
 
 
To
02/03/2004 12:19:48
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00882283
Message ID:
00882615
Views:
24
>
>oNode = TreeView.HitTest(x,y) && CAN RETURN NULL
>*? TYPE('oNode') && returns "O" because it is typed to "O", but the value is NULL
>* use
>? ISNULL(m.oNode)
>* or
>? VARTYPE(m.oNode) && print X
>IF !ISNULL(m.oNode)
>? M.oNode.Text && for me this is good
>ENDIF
>
>
>Fabio

Hi Fabio,

Thanks for replying. It still returns an error "oNode is not an object".
? ISNULL(m.oNode)        && .F.
? TYPE('m.oNode')        && 'C' (I'm using VFP 5)
IF !ISNULL(m.oNode)
   ? m.oNode.Text        && error!
ENDIF
? TYPE('m.oNode.Text')   && 'U'
I tried various different locations {x,y} of the TreeView, they all behave the same. I even tried referencing the object reference of the TreeView - as in THISFORM.TreeView.OBJECT.HitTest(x,y) - but to no particular good.

Thanks again.
Kenneth.
Previous
Reply
Map
View

Click here to load this message in the networking platform