lulumetro / vba-json

Automatically exported from code.google.com/p/vba-json
0 stars 0 forks source link

improve parseNumber() for other decimal settings #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have added to parseNumber():

            If InStr(value, ".") Or InStr(value, "e") Or InStr(value, "E") Then
                ' for PT Local Settings where decimal is ","
                If CStr(1.2) = "1,2" Then value = Replace(value, ".", ",",
1, -1, 1)
                parseNumber = CDbl(value)
            Else
                parseNumber = CInt(value)

--
Are you planning adding support for JSON-RPC ? That would be nice.

Original issue reported on code.google.com by telmo.ca...@gmail.com on 12 Jun 2009 at 9:53