CDBL : Giving error “Type mismatch on negative number” [on hold]











up vote
0
down vote

favorite












I am trying to convert the below string to Double "-5470.66". During runtime i am getting Type mismatch error.



Code:



sTempBal = "-5470.66"
sCntBal = cDbl(sTempBal)'''Getting Error "Type mismatch CDbl on the same
Msgbox sCntBal









share|improve this question













put on hold as off-topic by Lankymart, Michael Dodd, Erik von Asmuth, K.Dᴀᴠɪs, Machavity 2 days ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Lankymart, Michael Dodd, Erik von Asmuth, K.Dᴀᴠɪs, Machavity

If this question can be reworded to fit the rules in the help center, please edit the question.









  • 1




    It works fine for me, are you sure you're pasting the code correctly?
    – Motti
    2 days ago






  • 2




    Note that CDbl is locale-dependent, you might want to include your locale settings to help us reproduce the issue. As-is, I can't reproduce this with common EU and US locale settings.
    – Erik von Asmuth
    2 days ago















up vote
0
down vote

favorite












I am trying to convert the below string to Double "-5470.66". During runtime i am getting Type mismatch error.



Code:



sTempBal = "-5470.66"
sCntBal = cDbl(sTempBal)'''Getting Error "Type mismatch CDbl on the same
Msgbox sCntBal









share|improve this question













put on hold as off-topic by Lankymart, Michael Dodd, Erik von Asmuth, K.Dᴀᴠɪs, Machavity 2 days ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Lankymart, Michael Dodd, Erik von Asmuth, K.Dᴀᴠɪs, Machavity

If this question can be reworded to fit the rules in the help center, please edit the question.









  • 1




    It works fine for me, are you sure you're pasting the code correctly?
    – Motti
    2 days ago






  • 2




    Note that CDbl is locale-dependent, you might want to include your locale settings to help us reproduce the issue. As-is, I can't reproduce this with common EU and US locale settings.
    – Erik von Asmuth
    2 days ago













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am trying to convert the below string to Double "-5470.66". During runtime i am getting Type mismatch error.



Code:



sTempBal = "-5470.66"
sCntBal = cDbl(sTempBal)'''Getting Error "Type mismatch CDbl on the same
Msgbox sCntBal









share|improve this question













I am trying to convert the below string to Double "-5470.66". During runtime i am getting Type mismatch error.



Code:



sTempBal = "-5470.66"
sCntBal = cDbl(sTempBal)'''Getting Error "Type mismatch CDbl on the same
Msgbox sCntBal






vbscript hp-uft uft14






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 2 days ago









nishit dey

443413




443413




put on hold as off-topic by Lankymart, Michael Dodd, Erik von Asmuth, K.Dᴀᴠɪs, Machavity 2 days ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Lankymart, Michael Dodd, Erik von Asmuth, K.Dᴀᴠɪs, Machavity

If this question can be reworded to fit the rules in the help center, please edit the question.




put on hold as off-topic by Lankymart, Michael Dodd, Erik von Asmuth, K.Dᴀᴠɪs, Machavity 2 days ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Lankymart, Michael Dodd, Erik von Asmuth, K.Dᴀᴠɪs, Machavity

If this question can be reworded to fit the rules in the help center, please edit the question.








  • 1




    It works fine for me, are you sure you're pasting the code correctly?
    – Motti
    2 days ago






  • 2




    Note that CDbl is locale-dependent, you might want to include your locale settings to help us reproduce the issue. As-is, I can't reproduce this with common EU and US locale settings.
    – Erik von Asmuth
    2 days ago














  • 1




    It works fine for me, are you sure you're pasting the code correctly?
    – Motti
    2 days ago






  • 2




    Note that CDbl is locale-dependent, you might want to include your locale settings to help us reproduce the issue. As-is, I can't reproduce this with common EU and US locale settings.
    – Erik von Asmuth
    2 days ago








1




1




It works fine for me, are you sure you're pasting the code correctly?
– Motti
2 days ago




It works fine for me, are you sure you're pasting the code correctly?
– Motti
2 days ago




2




2




Note that CDbl is locale-dependent, you might want to include your locale settings to help us reproduce the issue. As-is, I can't reproduce this with common EU and US locale settings.
– Erik von Asmuth
2 days ago




Note that CDbl is locale-dependent, you might want to include your locale settings to help us reproduce the issue. As-is, I can't reproduce this with common EU and US locale settings.
– Erik von Asmuth
2 days ago

















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

SQL update select statement

WPF add header to Image with URL pettitions [duplicate]