What is the difference between Sub and Function in VB6?
vb6
Solution
Function returns value, Sub doesn't. It's that simple.
Problem
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?