Visual Basics provides a generic splash screen template you can add to your project with or without modification. You can change the generic graphic on the splash screen by changing the BackgroundImage property on the Properties window. To use the generic splash screen, follow the steps starting on pg 567.
Methods, Ops, Procedures
Function:
Public Function DoesItEqualTen(intNumberOne As Integer,intNumberTwo As Integer) As Boolean
Dim blnTrueOrFalse As Boolean=False
If intNumberOne + intNumberTwo=10 Then
blnTrueOrFalse=True
Else
blnTrueOrFalse=False
Return blnTrueOrFalse
End Function
Return String
Public Function DoesItEqualTen(intNumberOne As Integer,intNumberTwo As Integer) As String
Dim blnTrueOrFalse As Boolean=False
If intNumberOne + intNumberTwo=10 Then
blnTrueOrFalse=True
Else
blnTrueOrFalse=False
Return "xxx"
End Function
Common Function
Public Sub xxx()
If IsNumeric(txtTextBox.text) Then
.......
End If
End Sub
Public Function IsNumeric(StringToLookAt As String) As Boolean
End Function
Public Function Customer Balance(AccountNumber As String) As Decimal
Dim decCustomerBalance As Decimal
............
............
Return decCustomerBalance
End Function
Calling Procedure
txtBalance.text=CustomerBalance(strAccountNumber)
Parameters
ByRef
When you type in an argument - you will get a ByRef
Pass a reference to the object
ByVal
Object is duplicated and passed to the function
Working with new object - looks the same
2 objects can have same name - different hash codes
Sunday, August 2, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment