Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21273

Convert String into Currency

$
0
0
Hello im wrestling with some values and i don't get it fixed. What i want is the following:

Code:

Dim Curarray(20) As Currency
Curarray(0) = 833235433555332.6332@

changed into:

Code:

Dim Curarray(20) As Currency
Dim pp as string
pp = "833235433555332.6332"
Curarray(0) = pp

but i don't get it to work.
I tried working with Ccur() and the Val() functions but the results are all wrong.
I got errors or i got values like:
833235433555332.63
833235433555332,6332 <- with a comma instead of the dot

Please help me out?

Viewing all articles
Browse latest Browse all 21273

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>