What is the difference between Sub and Function in VB6?

前端 未结 8 1941
孤城傲影
孤城傲影 2020-12-25 09:57

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)         


        
8条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-25 10:40

    A function holds data and code. But a subroutine contains only code, but not data.

提交回复
热议问题