Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursors and append..
Message
From
30/11/2006 17:37:24
 
 
To
30/11/2006 17:16:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6
Miscellaneous
Thread ID:
01172836
Message ID:
01173917
Views:
14
Why can't I get this to work? I'm trying to use a cursor and append records on it.

This is my exact code,
select ckey from treeview into cursor csrtemp
use (dbf([csrtemp])) again in 0 alias csrtable
select csrtable
use in csrtemp

nodeptr = thisform.oletreeview.selecteditem

local childnodeptr
childnodeptr = m.nodeptr.child

do while !isnull(m.childnodeptr)
	append blank
	replace ckey with m.childnodeptr.key
	childnodeptr = m.childnodeptr.next
enddo
There is no error but I don't get the correct value for the table. Records seem to be appended every time to table csrtable, previous values are retained.

What is wrong?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform