I tried to do this
////caller program////
choice!=1
hThread! = Thread("countdown.prg",1)
While(i!>0)
{
highlightPick(choice!)
Wait(input$)
SetChoice(input$)
}
What I want this to do is start the countdown thread. While the thread is counting down, allow the user to choose which pick to use per section(tumbler)
//Thread//
i! = 30
While(i!>0)
{
clear(cnvRenderNow!)
ColorRGB(254,36,0)
FontSize(30)
Bold("on")
i$ = CastLit(i!)
Text(1,1,i$,cnvRenderNow!)
ColorRGB(0,0,0)
Bold("off")
FontSize(20)
drawCanvas(cnvRenderNow!, 0,0)
threadSleep(hThread!, 1)
i--
}
If i run the caller program the Text is not displaying. Otherwise if I run just the countdown prg it displays the text perfectly. Not sure why.