array() as RETURNCODE in SUB

Discussion in 'Questions (Windows Mobile)' started by kohle, Feb 5, 2009.

  1. kohle

    kohle Active Member Licensed 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
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Currently you can only return regular (non array) variables.
     
  3. kohle

    kohle Active Member Licensed 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.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    I will file it as a bug. The IDE should have show an error just like the compiler.
     
  5. Mr_Gee

    Mr_Gee Active Member Licensed User

    you can return it as a string and use split to get it into the array
    works for me :)
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice