Whats the syntax for running a function through a private sub?

  • Thread starter Thread starter Zach
  • Start date Start date
Z

Zach

I've written a program for one of my classes and its all
finished except i cant figure out the code that i need to
bring in for a sub that runs a function ...

lstGrades.Text = FindGrades(intX(Highest.txt),
intX(Lowest.text)
strName = FindGrades(Letter, Average)

does that seem right??
 
Something like this? Maybe?

Private Overloads Function FindGrades(ByVal text As String) As String
'-- Do whatever

Return "Your name is mud"
End Function

Private Overloads Function FindGrades(ByVal text As String, ByVal avg As
Integer) As String
'-- Do whatever

Return "Your name is mud"
End Function

Private Function intX(ByVal text As String) As String
'-- Do whatever

Return "Your name is mud"
End Function
 
Back
Top