Which data Type can hold Bigint value ?

Hi All,

i wrote the fallowing code

static void CountFunction(Args _args)
{
LedgerTrans ledgerTrans;
int countLedgerTrans;
;
select count(recId) from ledgerTrans;

countLedgerTrans = ledgerTrans.recId;

print countLedgerTrans;

pause;

}

IT SHOWS ME THE FALLOWING ERROR

Assignment/Comparison loses precision.

HI Roshan,

try this…

static void CountFucn(Args _args)

{

SysDictTable sysDictTable;

;

sysDictTable = new SysDictTable(tablenum(LedgerTrans));

info(strfmt("%1",sysDictTable.recordCount()));

}

Naresh…

You could use the datatype recid instead of int. Int64 is the base datatype for recid.

Thanks Fabrico…