R RobertoS Member Licensed User Longtime User Jun 15, 2018 #1 Hello, I have a problem with an application that must show the progress of the import of some data. The Label that should be updated with each new entry does not change, but remains only the first entry. If, however, the program is blocked, the label is updated. Below is an example of what the app does. Thanks Best regards Attachments testLabelUpdate.zip testLabelUpdate.zip 26.7 KB · Views: 623
Hello, I have a problem with an application that must show the progress of the import of some data. The Label that should be updated with each new entry does not change, but remains only the first entry. If, however, the program is blocked, the label is updated. Below is an example of what the app does. Thanks Best regards
Alexander Stolte Expert Licensed User Longtime User Jun 15, 2018 #2 Try this, if you want to keep the old text : Code: Copy lbWait.text = lbWait.text & s if you Code: Copy lbWait.text = s write this, then the old text is overwritten Upvote 0
Try this, if you want to keep the old text : Code: Copy lbWait.text = lbWait.text & s if you Code: Copy lbWait.text = s write this, then the old text is overwritten
R RobertoS Member Licensed User Longtime User Jun 18, 2018 #3 Alexander Stolte said: Try this, if you want to keep the old text : Code: Copy lbWait.text = lbWait.text & s if you Code: Copy lbWait.text = s write this, then the old text is overwritten Click to expand... My problem is different, I have to constantly update a label with a different text each time. The example I attached in the first post shows the problem. Thanks Roberto Upvote 0
Alexander Stolte said: Try this, if you want to keep the old text : Code: Copy lbWait.text = lbWait.text & s if you Code: Copy lbWait.text = s write this, then the old text is overwritten Click to expand... My problem is different, I have to constantly update a label with a different text each time. The example I attached in the first post shows the problem. Thanks Roberto
klaus Expert Licensed User Longtime User Jun 18, 2018 #4 You should move Sleep(0) from the aggiornaWait routine to the updateLabel routine. Code: Copy Public Sub updateLabel() For idx = 0 To 1000 CallSub2(Main, "aggiornaWait", "Test Label " & idx) Sleep(0) Next End Sub Upvote 0
You should move Sleep(0) from the aggiornaWait routine to the updateLabel routine. Code: Copy Public Sub updateLabel() For idx = 0 To 1000 CallSub2(Main, "aggiornaWait", "Test Label " & idx) Sleep(0) Next End Sub