Formatting Data and Calling Event Procedures in VB6.0
VISUAL BASIC 6.0 FORMATTING DATA To Format data for display, either on the printer or on the screen, use the formatting functions. i.The FormatCurrency Function The FormatCurrency function returns a string of characters formatted as dollars and cents. By default, the currency value displays a dollar sign, commas and two positions to the right of the decimal point. General Format FormatCurrency(NumericExpressionToFormat) Example lblBalance.Caption = FormatCurrency(curBalance) Variable Value Function Output curBalance 1275.675 Formatcurrency (curBalance) $1,275.68 sngAmount .9 Formatcurrency (sngAmount) $0.09 ii.The FormatNumber Functi...