Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange problem with Treeview SelectedItem property
Message
From
26/07/2003 03:55:30
 
 
To
25/07/2003 20:14:54
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00812987
Message ID:
00813721
Views:
14
Hi Jim,
THISFORM.Tree.SelectedItem = THISFORM.Tree.Nodes(1)
In re-reading your original post it sounds to me as if ThisForm.Tree.Nodes(1) is the item that is, for some reason, not an object? .SelectedItem will accept a node object or a logical value (as long as it's false) and it looks as if it's not getting either.

I still think your chances of solving this will be much improved if you are *sure* of the source of the error.

If you can't use ASSERTS then why not a message box:

IF TYPE("THISFORM.Tree.Nodes(1)") <> "O"
= messagebox("Node not an object")
ENDIF


Regards,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform