Tuesday, December 11, 2007

How to use the Asc Function

How to use the Asc Function

To use the Asc Function

Below is the Syntax for Asc function. This will arrange a string in ascending order:

Asc(String)

Step 1:

Add the button to the Form:

Step 2:

Write the programming codes for the Button:

Private Sub Command1_Click()

Dim a

a = Asc("APPLe")

Form1.Print a

End Sub

In this example, by clicking on the button, the word 'APPLe' will be arranged in ascending order and display on the form.


No comments: