FroDesigns
Member
- Joined
- Aug 23, 2009
- Messages
- 6
- Programming Experience
- 1-3
Well I am trying to use functions in one of my program so I tried a function with an If, then statement that returns a value either true or false.
This is my code:
When I ran it, it came up with an error: Error 1 Argument not specified for parameter 'a' of 'Public Function strings11(a As String) As Boolean'. C:\Users\Dennis_2\Documents\Visual Studio 2005\Projects\UsingADLL2\UsingADLL2\Form1.vb 6 9 UsingADLL2
Can anyone help me figure out how to run the function?
This is my code:
VB.NET:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
strings11 = True
MsgBox(strings11)
End Sub
Public Function strings11(ByVal a As String) As Boolean
a = InputBox("enter number:")
If (a = "1" Or "2") Then
Else
Return False
End If
End Function
When I ran it, it came up with an error: Error 1 Argument not specified for parameter 'a' of 'Public Function strings11(a As String) As Boolean'. C:\Users\Dennis_2\Documents\Visual Studio 2005\Projects\UsingADLL2\UsingADLL2\Form1.vb 6 9 UsingADLL2
Can anyone help me figure out how to run the function?