BRADSJ
12th October 2010, 16:17
I am getting a compilation warning when i try to compile a report script.
Return value of function 'text.to.buf' ignored.
I am trying to return the 5th line of Item Master text (tiitm001.txta) for language 1.
This is the report script:
declaration:
table ttiitm001 | Items
extern domain tcitem item.f fixed
string text.array(20,5)mb
extern domain tcmcs.str20 itm.txta5 mb
#include "itccom0010" | handle reports
#include <bic_text>
#include <bic_tt>
detail.1:
before.layout:
select tiitm001.*
from tiitm001
where tiitm001._index1 = {:item.f}
order by tiitm001._index1
selectdo
text.array(1,5) = ""
text.to.buf("tiitm001.txta", "1", 5, text.array)
itm.txta5 = text.array(1,5)
endselect
Return value of function 'text.to.buf' ignored.
I am trying to return the 5th line of Item Master text (tiitm001.txta) for language 1.
This is the report script:
declaration:
table ttiitm001 | Items
extern domain tcitem item.f fixed
string text.array(20,5)mb
extern domain tcmcs.str20 itm.txta5 mb
#include "itccom0010" | handle reports
#include <bic_text>
#include <bic_tt>
detail.1:
before.layout:
select tiitm001.*
from tiitm001
where tiitm001._index1 = {:item.f}
order by tiitm001._index1
selectdo
text.array(1,5) = ""
text.to.buf("tiitm001.txta", "1", 5, text.array)
itm.txta5 = text.array(1,5)
endselect