Obtain Regionally Valid Decimal Separator without API

Category:
String Manipulation
Type:
Snippets
Difficulty:
Beginning
Author:
Themos Piperakis

Version Compatibility:

More information:
The decimal point is usually the dot ".", but for some countries, e.g. Greece, it is ",". This code allows you to retrieve the decimal separator on which the computer the program is running without using an API function.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: