
I'm getting the call stack with this error: "error executing code wrong type of argument for conversion function" in second line below (with any2str()) costPrice is type Real. What can I do to resolve it?
projCatCostCostPriceNode = xmlDoc.createElement(fieldStr(myTable, CostPrice)); projCatCostCostPriceNode.appendChild(xmlDoc.createTextNode(any2str(myTable.CostPrice))); projCatCostRecIdNode.appendChild(projCatCostCostPriceNode);
*This post is locked for comments
I have the same question (1)Use num2str() instead and (with the help of parameters of num2str) define *how* you want to convert the number to string.