| 14.1 Creating Your Own Function The general format of a function is as follows:
* Public indicates that the function is applicable to
the whole project and |
|
|
|
|
| Example 14.2
The following program will automatically compute examination grades based on the marks that a student obtained. The code is shown on the right.
|
The Code
Public Function grade(mark As Variant) As String
Private Sub compute_Click()
End Sub
|