avpatil
16th January 2003, 21:56
Hi,
I am trying to use alias see the code below
{
Select tccom010.*, tdsls045.*
from tccom010, tdsls045
where tdsls045._index1 inrange {:orno.f}
and {:orno.t}
and tdsls045.cuno refers to tccom010
order by tdsls045._index1
selectdo
if not isspace(tccom010.pctf) then
if not doubtful parent (tccom010.pctf) then
do something
else
do something else
endif
endselect
}
function domain tcbool doubtful.parent(
domain tccuno f.cuno)
{
select a.cnpa,a.cuno
from tccom010 a
where a._index1 = {:f.cuno}
and a.cnpa = tccnpa.doubtful
order by a._index1
selectdo
return(true)
endselect
return(false)
}
After returning from second function the customer number in first function changes. It seems it is loosing the pointer. This is type 4 session. Any idea? I thought alias will keep my pointer in tact.
Thanks
Arvind Patil
I am trying to use alias see the code below
{
Select tccom010.*, tdsls045.*
from tccom010, tdsls045
where tdsls045._index1 inrange {:orno.f}
and {:orno.t}
and tdsls045.cuno refers to tccom010
order by tdsls045._index1
selectdo
if not isspace(tccom010.pctf) then
if not doubtful parent (tccom010.pctf) then
do something
else
do something else
endif
endselect
}
function domain tcbool doubtful.parent(
domain tccuno f.cuno)
{
select a.cnpa,a.cuno
from tccom010 a
where a._index1 = {:f.cuno}
and a.cnpa = tccnpa.doubtful
order by a._index1
selectdo
return(true)
endselect
return(false)
}
After returning from second function the customer number in first function changes. It seems it is loosing the pointer. This is type 4 session. Any idea? I thought alias will keep my pointer in tact.
Thanks
Arvind Patil