License Creative Commons Attribution 3.0-US
Lines 9
Keywords
ASP (1) client (1) decimals (1) numbers (1) server (3) Visual Basic 6 (1)
Permissions
Owner: davidakachaos
Viewable by Everyone
Editable by All Siafoo Users
Hide
Siafoo is here to make coding less frustrating and to save you time. Join Siafoo Now or Learn More

Check which decimal separator should be used... Atom Feed 1

In Brief This is used by me for ASP pages. They may differ from server to server, and client to client. That's why I use this check to see if I should use a dot or comma to separate decimal numbers.
# 's
1If InStr(1.2, ".") = 0 Then
2 'We should use a , (comma) to separate decimals here
3 mstrComma = ","
4 mstrDot = "."
5Else
6 'We use a . (dot) to separate decimals here
7 mstrComma = "."
8 mstrDot = ","
9End If

This is used by me for ASP pages. They may differ from server to server, and client to client. That's why I use this check to see if I should use a dot or comma to separate decimal numbers.