hujielilu
28th December 2002, 03:33
Dear ALL:
I use BaanIV tools, and met a problem, how to use the
recursion in program script?
I write the following:
functions:
function read.tibom010()
{
select tibom010.*,tiitm001.kitm
from tibom010,tiitm001
where tibmo010._index1 ={:item}
and tibom010.mitm refers to tiitm001
selectdo
if tiitm001.kitm=tckitm.manufacture then
item = timod010.mitm
read.tibom010()
else
|do some thing
endif
endselect
}
but when I calll the funtion, has the error, and don't allow to use recursion. What is the reason.
Which kind brother can help me solve the problem?
Thanks a lot!
I use BaanIV tools, and met a problem, how to use the
recursion in program script?
I write the following:
functions:
function read.tibom010()
{
select tibom010.*,tiitm001.kitm
from tibom010,tiitm001
where tibmo010._index1 ={:item}
and tibom010.mitm refers to tiitm001
selectdo
if tiitm001.kitm=tckitm.manufacture then
item = timod010.mitm
read.tibom010()
else
|do some thing
endif
endselect
}
but when I calll the funtion, has the error, and don't allow to use recursion. What is the reason.
Which kind brother can help me solve the problem?
Thanks a lot!