string to int64 conversion

Hi,

I have a requirement where I will get able recid’s as strings from a file.

I have to accept the string and convert them back to int64(recid data type), match the recid with the table data and return the matched record.

Example : Input string recid = ‘5637160838’

After I convert this to int64 the output is 1342193542, which is not my recid in the table.

Can anyone help me please?

Regards

Sindhu

Try this:

RecId recId;

recId = str2int64(‘5637160838’);

info(strFmt(’%1’, recId));

1 Like

Hi Velislav,

Thank you for your reply.

I have tried it this way and it worked.

Gobal::str2recid(‘5637160838’);

Will try the way you have suggested too. :slight_smile:

Rrgards

Sindhu