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
vbscript hp-uft uft14
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.
add a comment |
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
vbscript hp-uft uft14
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 thatCDbl
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
add a comment |
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
vbscript hp-uft uft14
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
vbscript hp-uft uft14
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 thatCDbl
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
add a comment |
1
It works fine for me, are you sure you're pasting the code correctly?
– Motti
2 days ago
2
Note thatCDbl
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
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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