Here's sample code that works for me:
If this works for you, Graham, then it may be a scope problem as Mikele suggests. If it doesn't work, then...? (Oh, and you are talking about XLnt ii, right?)
Include "XSTART.BB" Graphics 800, 600, 16, 2 GUI_GFXSETUP() MyWin=GUI_WINDOW( -1,-1, 400,200, "Label Test" ) lblTileNumber = GUI_label( MyWin, 50,100, 100,20, "this text will be replaced" ) T$ = "tile:" + tileindex + "/" + maxtiles GUI_SetText( lblTilenumber, t$ ) GUI_OPENWIN( MyWin ) Repeat SetBuffer BackBuffer() : Cls GUI() Flip Until EV_WIN_CLOSE( MyWin ) Or KeyDown( 1 )
If this works for you, Graham, then it may be a scope problem as Mikele suggests. If it doesn't work, then...? (Oh, and you are talking about XLnt ii, right?)