Strange Message box behaviour

kanaida

Active Member
Licensed User
Longtime User
I have a code module called MyActions


In my main activity I call:
Msgbox("Some message goes here","Some title")
MyActions.RunScript("somescript.sh")

:sign0085:
What I don't understand is why my message box does not always pop up. Worst of all, it seems almost async because it doesn't wait for an "ok" button press to go to the next line of code. I found in fact that my script was running.... I don't know what to make of this.

In any vb i've ever used the message box stops and shows text, waits for user input, then executes code after.
 

kanaida

Active Member
Licensed User
Longtime User
It's a button click event. Nothing fancy.

Sub btnRunScript_Click
Msgbox()
script
End Sub
 
Upvote 0

kanaida

Active Member
Licensed User
Longtime User
When I get home today i'll post a smaller project recreating the issue.
I have no timers, nothing but the basics, an activity, a code module and a button running the code.

I have a code module called script ( from an example on this board, it just runs su < something.sh)

I've gone as far as to do it this way with no change:

B4X:
sub button1_click
Msgbox()
CodeModule.DoSomething    <--- that sub containing the script to run
End sub

I'm using B4A with the new abstract designer, 1.7 i think. It's the recent one. (Thanks for that by the way, it's MUCH better. Only thing now is allowing us to change font size on views so we can fit them in, they're huge)
 
Upvote 0
Top