Notice that if I construct a function:

Function hello($c)
$hello=$c*5
Endfunction

The function returns the value of $c * 5

If I want to have a variable $c that is function *hello* of what it was before I would use:

$c=hello($c)

However, what if I wanted the function to modify the value of $c internally?

Function hello($c)
$c=$c*5
$hello=$c
Endfunction

If I use $c=hello($c) the function still works, but what if I wanted to change $c while I was filling another variable with hello($c)?

$d=hello($c) would work to give me the correct value, but $c would not change. Is there a way to allow the variable passed to the function to actually change without passing it as the result of the function?

By default, all variables declared in functions are LOCAL... it would be nice if they could be made to a GLOBAL so that you could actually change the variable even though you were returning something else:

$c=1,2,3,4,5,6,7

function hello(Global $c)
DIM $u
$u=ubound[$c]
$hello=$c[$u]
$c=REDIM PRESERVE $C[$u-1]
endfunction

This function would return the value 7, but the $c would be modified to 1,2,3,4,5,6.

Presently, I believe this type of functionality is unavailable. I realize that you could return an array with the first element of the array being an array, but this is not desirable in many cases. Is there a way around this, or should I add this to the suggestion box?

Brian