Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ole idispatch error: element not found
Message
From
08/01/2007 20:39:17
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Ole idispatch error: element not found
Environment versions
Visual FoxPro:
VFP 6
Miscellaneous
Thread ID:
01183672
Message ID:
01183672
Views:
299
Why do I get an error OLE IDispatch exception code 0 from Nodes: Element not found?

This is the code:
sele treeview
set multilocks on
=cursorsetprop("buffering",5,"treeview")

sele treeview
=tableupdate(.t.)
go top
o = thisform.oletreeview.nodes
o.clear

scan
	if alltrim(crelative) = '0'
		o.add(,1,alltrim(ckey),alltrim(ctext),0)
	else
erro >>>        o.add(alltrim(crelative),4,alltrim(ckey), alltrim(ctext),0)
	endif
endscan

thisform.oletreeview.selecteditem = thisform.oletreeview.nodes(1)

thisform.updateproperties(thisform.oletreeview.selecteditem)

if loexpand=0
	loexpand=1
else
	thisform.cmdexpandcollapse.click
endif
Please help me. TIA.
Next
Reply
Map
View

Click here to load this message in the networking platform