are calls of functions linked via Bind... processed serially or simultaneously like threads?
Code: Select all
Global NewList MyList.i()
Procedure Processor()
SelectElement(MyList(),20)
Delay(3000)
EndProcedure
For counter=1 To 100
AddElement(MyList())
MyList()=counter
Next
OpenWindow(0,0,0,300,200,"Test",#PB_Window_ScreenCentered|#PB_Window_SystemMenu)
ButtonGadget(1,0,0,300,200,"Push me!")
BindGadgetEvent(1,@Processor(),#PB_EventType_LeftClick)
SelectElement(MyList(),10)
Repeat
Debug MyList()
SelectElement(MyList(),10)
Until WaitWindowEvent(1000)=#PB_Event_CloseWindow