The difference between Sub and Function in VB6

vb6

I am going through some old VB code and I run into function definitions like these –

 Private Function ExistingCustomer(Index As Integer, Customer As String) As Integer

 Private Sub cmdCustomerList_Click()

What's the difference?

Best Answer

Function returns value, Sub doesn't. It's that simple.

Related Topic