Getting the Currency Symbol in your system Without APIs

Category:
Miscellaneous
Type:
Snippets
Difficulty:
Beginning
Author:
Brian matumbura

Version Compatibility: Visual Basic 6

More information:
Sometimes you may want to show a label containing the currency symbol next to a textbox for moneytory input in your application e.g. if your application is to be used in countries with different currencies. The function below returns the System's Currency Symbol. The function can be easily modified to cater for other currency formats:

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

Declarations:

Code: