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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top