I'm using a for loop with a nested find
for each icsp where icsp.cono = v-cono and icsp.prod = v-prod
exclusive-lock:
find notes where notes.cono = icsp.cono and notes.primarykey = string(icsp.prod) no-error.
if available notes then
My problem is I don't seem to be able to access the icsp table from within the find function.
If I do a
assign icsp.notes = "*"
update notes.notestype = "P"
after the "if available notes then" I get an error or the assign icmp.notes line.
I know it's a scope issue, but not sure how to work around.
for each icsp where icsp.cono = v-cono and icsp.prod = v-prod
exclusive-lock:
find notes where notes.cono = icsp.cono and notes.primarykey = string(icsp.prod) no-error.
if available notes then
My problem is I don't seem to be able to access the icsp table from within the find function.
If I do a
assign icsp.notes = "*"
update notes.notestype = "P"
after the "if available notes then" I get an error or the assign icmp.notes line.
I know it's a scope issue, but not sure how to work around.