It is only a limitation in Tier 1 programming.
Quote: "
I believe you can get around it by passing a UDT as a variable to the function"
You have to be very careful about this. You can only pass a UDT into one level of functions. If you try to pass the same one to another function from within the first function, you can run into problems. This issue was recently
re-posted into the issue board because it still exists, even though they say it was fixed.
So, don't do something like this:
type ABC
x as integer
y as integer
z as float
endtype
...
xxx as ABC
do
...
first_func(xxx)
loop
end
function second_func(audt as ABC)
endfunction
function first_func(audt AS ABC)
second_func(audt)
endfunction
You cannot be sure whether the values that appear in the second function for the passed UDT will be correct.
Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master