The subroutine below takes approx. 7 seconds to complete.
The first line lblstatus.text="UPLOADING" updates a UI label - shouldn't this line complete before the 7 second wait ? or do the UI labels get updated on subroutine completion ?
Many thanks in advance.
The first line lblstatus.text="UPLOADING" updates a UI label - shouldn't this line complete before the 7 second wait ? or do the UI labels get updated on subroutine completion ?
Many thanks in advance.
B4X:
Sub upload_MouseClicked (EventData As MouseEvent)
lblstatus.Text="UPLOADING !!!!"
Dim b() As Byte = Array As Byte(58,48,50,48,48,48,48,48,51,48,55,48,48,70,52)
'In ASCII that equates to :,0,2,0,0,0,0,0,3,0,7,0,0,F,4 or :,02,00,00,03,07,00,F4
astream.Write(b)
log("Attempting to Erase the chip")
wait(7000)
End Sub