Could someone explain me why doesn't this code work?
Strict
Local window:TGadget=CreateWindow("My Window",50,50,240,100,,WINDOW_TITLEBAR)
Local progbar:TGadget=CreateProgBar(10,10,200,20,window)
Global count=0
While WaitEvent()
count=count+1
If count<=50
UpdateProgBar progbar,count/50
EndIf
Select EventID()
Case EVENT_WINDOWCLOSE
End
End Select
Wend
Strict
Local window:TGadget=CreateWindow("My Window",50,50,240,100,,WINDOW_TITLEBAR)
Local progbar:TGadget=CreateProgBar(10,10,200,20,window)
Global count=0
While WaitEvent()
count=count+1
If count<=50
UpdateProgBar progbar,count/50
EndIf
Select EventID()
Case EVENT_WINDOWCLOSE
End
End Select
Wend