gerardd
9th November 2012, 08:46
I need to report on the items in tiitm001
per item I need to check on an item with a name direved from the current item.
How do I do that?
I lose the current item in the first select.
select tiitm001.* from tiitm001
where tiitm001._index2 inrange {:kitm.f, :item.f}
and {:kitm.t, :item.t}
selectdo
hlp_item = tiitm001.item
hlp_item(9;1) = "V"
select tiitm001.* from tiitm001
where tiitm001._index1 = {:hlp_item}
selectdo
if voorwaardenOK() then
printArtikel()
endif
endselect
endselect
per item I need to check on an item with a name direved from the current item.
How do I do that?
I lose the current item in the first select.
select tiitm001.* from tiitm001
where tiitm001._index2 inrange {:kitm.f, :item.f}
and {:kitm.t, :item.t}
selectdo
hlp_item = tiitm001.item
hlp_item(9;1) = "V"
select tiitm001.* from tiitm001
where tiitm001._index1 = {:hlp_item}
selectdo
if voorwaardenOK() then
printArtikel()
endif
endselect
endselect