I have an issue where i am reading a range of values from excel which is “1000,12”. However when the robot types the value into Microsoft Dynamics Nav it comes out as “1000.12”. I have tried to change the regional settings in windows, decimal settings etc. but still not working. Anyone had this problem before?
Have you tried:
(use your culture specifier of course). Works fine for me.
I just tried: row(“Value”).toString(culture.CreateSpecificCulture(“no-NO”)), however i get an compiler error. Is the syntax wrong?
Try with CultureInfo instead of culture. CreateSpecificCulture is a static method, it should work without having an instance and it would rule out incorrect/missing initialization.
Make sure you have System.Globalization namespace imported.
Post your exact error.
What is the column type and stored value type?
If it would be decimal, as one would expect from having that value and original issue with incorrect decimal separator, this should work.
show in console? By logic you should get Object or GenericValue from first, Decimal from second. But that would give correct overload with CultureInfo.
The first one gives “System.Double”
However, i get an error with the GetTypeCode - “Option Strict On dissalows late binding”
Edit: GetTypeCode gives me “String”
Got a repro.
It should work with:
Compiler check goes for a .ToString call on Object type, hence the overload confusion.
Perfect! That worked
Thanks so much for your help!