First part of the morning we completed our test and I handed in my radar and mystic assignments.
Now we are going through chapter 8
Procedures
Public Sub MyProcedure()<--- its a method that we require furthur information for further tasks -->
'Do something
End Sub
Function
Public Function DoesItEqualTen (intNumberOne As Integer,intNumberTwo As Integer? As Boolean <-- depends on info you want to return -->
Dim blnTrueOrFalse As Boolean = False
If intNumberOne + intNumberTwo = 10
blnTrueOrFalse = True
Else
blnTrueOrFalse = False
End Function
If IsNumeric(txtTextBox.text) Then
---
End If
ublic FUnction IsNumeric(stringToLookAt) As Boolean
End FUnction
By Val - object is duplicated and passed to the function
By Ref - WHen you type in an argument, you will get a byref, pass the reference to the function
Sunday, August 2, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment