Tuesday, December 11, 2007

How to work with the Format Function

How to work with the Format Function

To work with the Format Function

Below is the Syntax of Format:

Format(expression[, format[, firstdayofweek[, firstweekofyear]]])

Type the programming codes to define the format of words in Currency and decimal points:

Private Sub Command1_Click()

Form1.Print Format(12, "currency")

Form1.Print Format(12, "###,###.##")

End Sub

No comments: