This may be a right silly question, but is it possible to Return more than one piece of data from a Function or Method.
For example lets assume we have just a straight forward function that returns one items of data...
Function myfunction(a)
b=5
c=a+b
Return c
End Function
print myfunction(10) ' would give us 15
But what if I wanted to return two items of data...
Function myotherfunction(a)
b=5
c=a+b
d=a-b
Return c
Return d ' how would i get this data to be returned from the function? Assuming it's possible in this way?
End Function
print myotherfunction(10) ' would give us 15
For example lets assume we have just a straight forward function that returns one items of data...
Function myfunction(a)
b=5
c=a+b
Return c
End Function
print myfunction(10) ' would give us 15
But what if I wanted to return two items of data...
Function myotherfunction(a)
b=5
c=a+b
d=a-b
Return c
Return d ' how would i get this data to be returned from the function? Assuming it's possible in this way?
End Function
print myotherfunction(10) ' would give us 15