spartacus
14th July 2009, 10:35
I'm trying to limit the number of possible selections on a mocc-form to one (Baan 5.0c).
Therefore I tried this code:
choice.mark.occur:
after.choice:
long occ.no
extern long count
count = 0
for occ.no = 1 to filled.occ |filled.occ is a predefined variable!
if mark.table(occ.no) then
count = count + 1
if count > 2 then
message("To many lines selected")
remove.mark()
endif
endif
endfor
But using the "remove.mark()" function generates an "recursion is yet not implemented" error. --> See attachement.
Meanwhile I suppose, that remove.mark() on Baan5 is not able to handle more than one mark. Is that correct?
Therefore I tried this code:
choice.mark.occur:
after.choice:
long occ.no
extern long count
count = 0
for occ.no = 1 to filled.occ |filled.occ is a predefined variable!
if mark.table(occ.no) then
count = count + 1
if count > 2 then
message("To many lines selected")
remove.mark()
endif
endif
endfor
But using the "remove.mark()" function generates an "recursion is yet not implemented" error. --> See attachement.
Meanwhile I suppose, that remove.mark() on Baan5 is not able to handle more than one mark. Is that correct?