Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Thisform.release won't release form?
Message
 
To
13/01/2007 03:11:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01184111
Message ID:
01185932
Views:
9
Change this code as below and it should not give you the problem (becasue nodeptr will be released at the end of the code) ...
local childnodeptr, tkey, rch, nodeptr

nodeptr = thisform.oletreeview.selecteditem

childnodeptr = m.nodeptr.child
rch = m.nodeptr.children

do while !isnull(m.childnodeptr)
	append blank
	replace csrkey with m.childnodeptr.key, ch with m.childnodeptr.children
	select csrtable
	childnodeptr = m.childnodeptr.next
enddo
>I tried removing some codes in my form, and see if who's giving me the problem.
>
>When I removed the code below, thisform.release releases my form. So I guess this is it?
>
>
>nodeptr = thisform.oletreeview.selecteditem
>
>local childnodeptr, tkey, rch
>childnodeptr = m.nodeptr.child
>rch = m.nodeptr.children
>
>do while !isnull(m.childnodeptr)
>	append blank
>	replace csrkey with m.childnodeptr.key, ch with m.childnodeptr.children
>	select csrtable
>	childnodeptr = m.childnodeptr.next
>enddo
>
Previous
Reply
Map
View

Click here to load this message in the networking platform