billydeng
6th November 2008, 05:16
Hi guys
when I compile in Baan 4 I got errors
1. tdsls041 not declared
2. unknow type of argument 1 for function 'db.update'
3. Argument 1 for function 'db.update' has illegal type
4 Illegal type combination'? should be:long'
I have been fixthing this for ages, the table tdsls041 which I have declared on the top of the form scripts
Function update.planning.completed.date()
{
if planningcompleted = tcyesno.yes then
select tdsls041.orno,
tdsls041.plcd
from tdsls041
for update
where tdsls041.orno = :tisfc930.dror
selectdo
tdsls041.plcd = date.num()
db.update(tdsls041,db.retry)
selectempty
message ("planning not yet completed")
endselect
endif
commit.transaction()
}
when I compile in Baan 4 I got errors
1. tdsls041 not declared
2. unknow type of argument 1 for function 'db.update'
3. Argument 1 for function 'db.update' has illegal type
4 Illegal type combination'? should be:long'
I have been fixthing this for ages, the table tdsls041 which I have declared on the top of the form scripts
Function update.planning.completed.date()
{
if planningcompleted = tcyesno.yes then
select tdsls041.orno,
tdsls041.plcd
from tdsls041
for update
where tdsls041.orno = :tisfc930.dror
selectdo
tdsls041.plcd = date.num()
db.update(tdsls041,db.retry)
selectempty
message ("planning not yet completed")
endselect
endif
commit.transaction()
}