what is the difference between a method and a procedure in visual basic?
Function and Subroutine are used interchangeably in Visual Basic but they have a difference. The main difference between Function and Procedure is that Function is a procedure that performs a certain task and returns a value to the calling code while a procedure is a block of executable statements in the program.