array() as RETURNCODE in SUB

kohle

Active Member
Licensed User
Longtime User
I wrote as sub like this (in globals is the dim too)

sub func_test()
dim te(0)
return te()
end sub


Work fine in Destop IDE , when I compile I get an error (Device/Windows.exe)

Error: CS0266, Can´t convert type Object to string
 

kohle

Active Member
Licensed User
Longtime User
I´m new to basic4ppc.
It´s confusing that it runs in the IDE without errors, but compiling seems to be different.

Is there a list about the differences between IDE running <-> Device <-> Windows.exe

The same problem with the different behavior of the combobox, IDE editable, Device not editable and Windows.exe editable.
 

Mr_Gee

Active Member
Licensed User
Longtime User
you can return it as a string and use split to get it into the array
works for me :)
 
Top