Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB Question - Return to a Sub after Function Call

Status
Not open for further replies.

bostonfrog

Programmer
Jul 14, 2003
79
MX
When I call a function in a sub, how do I return to the next line in the sub after processing the function? I've always written forms where a function is called, but never yet where I went back to the sub. Sorry for my ignorance.
For example:

Code:
cmdButton_Click()
  call function1
  ' more lines of code, return to this line after function.
End sub

function1()
  'process whatever
  'How do you return to the next line in the sub that called it?
end function
 
Once the function finishes running it will automatically return to your sub.

HTH,
Eric
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top