FrenkR
25th August 2016, 02:55
Hi,
as specified in docs, table variable t<tablename> is extern (global) variable and is shared as a pointer to all dll-s that are used inside process.
I would like to make a cursor - in - cursor function in 2 separated dll-s on the same table as follows:
dll1:
table tppmmmxxx
select *
from ppmmmxxx
where ppmmmxxx.type = 10
selectdo
if (dll2.process(ppmmmxxx.orno, ppmmmxxx.pono) = tcyesno.yes) then
dal.change.object("ppmmmxxx")
...
dal.change.object("ppmmmxxx")
endif
endselect
dll2(note same table update!):
table tppmmmxxx
select *
from ppmmmxxx
where ppmmmxxx.type = 20
selectdo
dal.change.object("ppmmmxxx")
...
dal.change.object("ppmmmxxx")
endif
return(tcyesno.yes)
endselect
return(tcyesno.no)
Is there any way that these 2 extern declaration of the same table would not share same pointer to data structure? Idea is to have updateable table cursor inside dll. Thanks.
as specified in docs, table variable t<tablename> is extern (global) variable and is shared as a pointer to all dll-s that are used inside process.
I would like to make a cursor - in - cursor function in 2 separated dll-s on the same table as follows:
dll1:
table tppmmmxxx
select *
from ppmmmxxx
where ppmmmxxx.type = 10
selectdo
if (dll2.process(ppmmmxxx.orno, ppmmmxxx.pono) = tcyesno.yes) then
dal.change.object("ppmmmxxx")
...
dal.change.object("ppmmmxxx")
endif
endselect
dll2(note same table update!):
table tppmmmxxx
select *
from ppmmmxxx
where ppmmmxxx.type = 20
selectdo
dal.change.object("ppmmmxxx")
...
dal.change.object("ppmmmxxx")
endif
return(tcyesno.yes)
endselect
return(tcyesno.no)
Is there any way that these 2 extern declaration of the same table would not share same pointer to data structure? Idea is to have updateable table cursor inside dll. Thanks.