Hi
i am getting error message like Assign: Input string was not in a correct format.
when i am trying to convert string to double
String Value is : 11.117,15
Hi
i am getting error message like Assign: Input string was not in a correct format.
when i am trying to convert string to double
String Value is : 11.117,15
I think issue with that β,β in that string.
First replace β,β and then try to convert it to double. It will work.
Ex: Str = β11.117,15β
Str = Str.replace(β,β,ββ)
cdbl(Str)
Hi @Naveen.Ch
Try this.
Replace the β.β with ββ and β,β with β.β
Test.xaml (4.7 KB)
Let know whether this works for youβ¦
Hi @Naveen.Ch,
Buddy β¦!
is 11.117, 15 two different values like 11.117 and 15. Because we should not take a string with dot and comma as a double, unless you want to convert them to double deliberately. Moreover it can be converted to double in any format like 11.11715 (Removing the comma) or like 11117.15 (removing the dot and replacing comma with dot as @Lahiru.Fernando and @lakshman uggsted ). But unless you want this to be done intentionally, buddyβ¦! we need to check whether it is of two values or to be converted to a single value.
First, if it is to be converted to single value, kindly go with either of the suggestions givenby @lakshman or @Lahiru.Fernando.
or
if they are two numbers, kindly refer to this below xaml converting them to double,
Test.xaml (7.0 KB)
Cheersβ¦!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.