Array as subroutine's parameter
Posted: Thu Aug 02, 2007 7:04 pm
Elo. What is the correct way to declare an array in a subroutine's parameters in FB? Is it possible to define the dimensions and size of the array when declaring it, as I can't find any help on this in the documentation. Currently I am using one like this:
I use UBOUND to determine the size of the passed array. A specific size for the parameter array isn't relevant to my current project, but is it possible to declare one?
Code: Select all
sub drawimage (img_to_load())
size = ubound (img_to_load, 1)
...
end sub