Cancoon2000
13th December 2006, 21:28
Hello All,
As per screen shot and code attached, I am expecting that while counter x is incrementing this means that I am checking the table field ticst002.qcrs of the corresponding occurrence number (record pointer is also incrementing). If my assumption is right than I have an issue as always the condition is not fulfilled (I think the record pointer is not moving, it is stuck at a single record most probably on the first marked record).

If my coding has something wrong can you enlighten me?


Thank you for your feedbacks

mark_h
14th December 2006, 00:23
Here is what I did:

choice.user.2: |Pressing on button Update - OPEN
on.choice:
.other code here

long x
for x = 1 to filled.occ
if(mark.table(x) = 1) then
| For each marked record call update.rec
do.occ(x,update.rec)
endif
endfor

function void update.rec()
{
| Check ticst002.qcrs for each record and modify accordingly.
If ticst002.qcrs <> ltoe(1) then
on case par.qcr.status
case 1:
ticst002.qcrs = ltoe(1)
break
case 2:
ticst002.qcrs = ltoe(2)
break
endcase
...set other table fields
update.occ()
execute(update.db)
endif
}

Cancoon2000
15th December 2006, 05:53
Thank you very much Mark, it works great.:)