Help! Pass variable back to Sub Main - TechRepublic
General discussion
April 16, 2002 at 04:25 AM
rsp05

Help! Pass variable back to Sub Main

by rsp05 . Updated 24 years, 2 months ago

Hi:
(Forgive my lack of programming terminology) I have a main sub that calls a sub (SubA), passing parameter values to that sub (SubA). SubA calls a Function that returns a value to SubA, SubA exits sub and returns to Sub Main, and now the variable is empty again. I want to be able to pass the value back to the main sub, so I can use the value in my code. Without using a class, how can I achieve this. Thanks much!

This discussion is locked

All Comments