smusba
13th September 2023, 15:12
Dear,

I get compilation error as Unresolved reference to function 'dal.destroy.object'.

I have written a code as follows:
choice.reject:
on.choice:


total.qty = 0
total.cost = 0
cost = 0
cnt = 0
long ret
select whinh225.*
from whinh225 for update
where whinh225._index1 = {1,:whinh220.orno,:whinh220.oset,:whinh220.pono,:whinh220.seqn}
and whinh225.acti = "whinh4202m000 "
selectdo
|dal.change.object("whinh225")
|dal.set.field("whinh225.qadv",0)
|dal.set.field("whinh225.qads",0)
|dal.save.object("whinh225")
ret = dal.destroy.object("whinh225")
endselect
commit.transaction()

select whinh220.*
from whinh220 for update
where whinh220._index1 = {1,:whinh220.orno,:whinh220.pono,:whinh220.seqn}
selectdo
whinh220.logn = " "

db.update(twhinh220,db.retry)
commit.transaction()
endselect

bdittmar
13th September 2023, 15:59
Hello,

is #include <bic_dam> declared ?

Regards

smusba
14th September 2023, 08:39
It was not included