Hello everyone,
I am trying to import some data from Excel file to the ProjJournalTrans table. I have trouble with one specific field, and it is the ProjWorkerRecId. So far this is my code lines for that field:
ProjWorkerRecId employeeID;
employeeID = any2real(strFmt("0000%1", any2int(cells.item(row, 4).value().double())));
projJournalTrans.Worker = employeeID;
My problem it that if for example, the Excel has the number "000013" in the cell for the worker ID, this code registers "13" in the table, which is translated to "unknown worker" and not "000013", which actually translates to an employee's name. What can I do to make the code register "000013" as it should?
Thank you
*This post is locked for comments
I have the same question (0)