Announcement

Collapse
No announcement yet.

Function nessted

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • eabir
    replied
    Thanks man!

    Leave a comment:


  • SignTorch
    replied
    the function call should be

    Code:
    Tom();
    instead of

    func Tom();

    then the function definition should start with

    Code:
    func Tom()
    instead of

    func Tom

    Leave a comment:


  • eabir
    started a topic Function nessted

    Function nessted

    Hi,

    Why do i get a compile error when i call the "Tom" function?


    "

    #platform "uLCD-43PT"

    #inherit "4DGL_16bitColours.fnc"

    #inherit "VisualConst.inc"

    #inherit "FunctestConst.inc"

    func main()

    gfx_Set(SCREEN_MODE,LANDSCAPE) ;
    gfx_Set(CONTRAST,5) ;
    txt_Set(TEXT_OPACITY, OPAQUE);
    numx := 0 ;

    gfx_TransparentColour(0x0020);
    gfx_Transparency(ON);


    func Tom();

    repeat

    forever

    endfunc

    func Tom

    print( "HERE")

    endfunc

    "

    Thanks
Working...
X