S strupp01 Active Member Licensed User Longtime User Mar 30, 2017 #1 I want to fill a text field with current information between two procedure calls, which are also immediately displayed. So far this is done only after the second procedure has been completed. B4X: Allgemeine_Prozesse.Verzeichnisse_loeschen 'Verzeichnisse komplett löschen TextField2.text = "Alle Verzeichnisse gelöscht" Allgemeine_Prozesse.Verzeichnisse_anlegen 'Benötigte Verzeichnisse anlegen Daten_vorhanden = 0 Allgemeine_Prozesse.SD_Karte_erkennen'Ist eine SD-Karte mit Daten eingesteckt
I want to fill a text field with current information between two procedure calls, which are also immediately displayed. So far this is done only after the second procedure has been completed. B4X: Allgemeine_Prozesse.Verzeichnisse_loeschen 'Verzeichnisse komplett löschen TextField2.text = "Alle Verzeichnisse gelöscht" Allgemeine_Prozesse.Verzeichnisse_anlegen 'Benötigte Verzeichnisse anlegen Daten_vorhanden = 0 Allgemeine_Prozesse.SD_Karte_erkennen'Ist eine SD-Karte mit Daten eingesteckt
Erel B4X founder Staff member Licensed User Longtime User Mar 30, 2017 #2 It will be simpler in the near future (https://www.b4x.com/android/forum/t...-subs-simpler-asynchronous-programming.77867/). For now: B4X: '... TextField2.Text = "..." CallSubDelayed(Me, "SecondStep") End Sub Sub SecondStep 'continue here End Sub Upvote 0
It will be simpler in the near future (https://www.b4x.com/android/forum/t...-subs-simpler-asynchronous-programming.77867/). For now: B4X: '... TextField2.Text = "..." CallSubDelayed(Me, "SecondStep") End Sub Sub SecondStep 'continue here End Sub
S strupp01 Active Member Licensed User Longtime User Mar 30, 2017 #3 Thank you for your help. With Sleep everything becomes easier. Upvote 0