Posts

Showing posts with the label Indian Style Number Formatting

Format numbers with Indian style commas.

In our ERP projects we usually need to display commas in numbers. In most of the format we did not get Indian style commas. So I had developed this class. Its main function is Put_Commas it take string as input and return string with commas. Public Class ClsCommas     Public Function Put_Commas( ByVal PassString As String ) As String         Dim IsNegative As Boolean         Dim DecimalPart As String         Dim TLen As Long             'Length of String without "-" and "."         Dim LString As String        'String for Storing Changed String         '-------         'Check Must Be Greater than 999         '---...