Hi again,
I have two other beginner questions please :roll: .
1)When you have two .brs files in the source folder, can you use the objects created in one file in the other?
I have a main.brs, with a Main() function that ends like this :
print "my_array"
print my_array
return my_array
Second()
end sub
Then i have a second .brs file, which starts like this :
Sub Second()
print "my_array"
print my_array
On the debugger console, I see :
my_array
1
2
3
4
5
my_array
<UNINITIALIZED>
The Second() function is called, so I think that the "return my_array" of the Main() has been done, but it doesn't want to print the array. Is there a special way to take an object from another file, or do I have to create all the functions that will use the array in the same .brs file?
2) Is it possible to return more than one object? For example if I create two arrays in my main(), can i use :
return my_array
return my_second_array
or
return my_array ; my_second_array
(or use a "," instead of the ";")
?
Thank you
Edit : I tried to copy the function Second() under my function Main() and deleted the second .brs file, but it wasn't called this time, as the debugger console stopped after printing "1 2 3 4 5" this time.
So i set it as it was the first time, with two files, and now the Second() function isn't called anymore :cry: