How to display real value in Barcode report

HI all

How to display real values in barcode farmat ax2009.

thanks in advance

nani

may be this will help u

display str 30 barcodeRefNum()
{
Barcode barcode;
str temp;
;
temp = num2str(tablename.tablefield,2,2,0,0);
barcode = Barcode::construct(BarcodeType::Code128);
barcode.string(true, temp);

return barcode.barcodeStr();
}

try to use this

hi i wrote like this ,but its not working i mean not scanned though scanning

display BarCodeString barcodeValue()

{

Str barCodeValue;

barCodeValue = ProdTable.ItemId + ProdTable.itemName() + ProdTable.ProdId +num2str(ProdTable.QtyCalc,1,2,1,0);

// info(barCodeValue);

return barCodeValue;//element.getBarCode().barcodeStr();

}

try to append values in my code …you will get proper barcode

display str 30 barcodeRefNum()
{
Barcode barcode;
str temp;
;
temp = ProdTable.ItemId + ProdTable.itemName() + ProdTable.ProdId +num2str(ProdTable.QtyCalc,1,2,1,0);

barcode = Barcode::construct(BarcodeType::Code128);
barcode.string(true, temp);

return barcode.barcodeStr();
}