Calling a function and then returning

C

CLamar

How do you call a function and then return to the previous location from
which you called it.

Thanks
Clamar
 
A

Ardus Petus

Just assign the function's return value to a variable, like:
myVar = MyFunc(MyArgs)

HTH
 
A

Ardus Petus

Hi CLamar,

Say you have a function name MyFunc with argument Arg:
Your code might look like this:

var2= 0
MyVar=MyFunc(myArgs)
var2=1

Code will return to the location after you called MyFunc

I Think I'd better redirect you to some kind of tutorial...

Cheers,
 
C

CLamar

I can get the code to do that but I want it to return to the previous
location before it exits the called function
 
Top