Hi there,
I am trying to convert many MsgBoxes to MsgBoxAsync. Since my App uses very much of them in different variants, that will be a lengthy task. I can't often simply use the *Async without Wait For, since often there are more than one Box in a row in one context. And when I don't Wait For, they come in the wrong sequence.
My actual problem is:
I have a sub in a code module which checks a value, which is called by two different activities. This sub tells the user about the result and returns a boolean value for the calling activity.
Now I can't use Wait For in a code sub. I can't move the sub in one of the activity modules, since the other can't call it directly. I can't simply return the text as string, since I have to return the boolean.
One possibility would be to copy the sub in both activities, but I don't want to do that, it would by risky when something changes with the check.
What's the best way to solve that?
I am trying to convert many MsgBoxes to MsgBoxAsync. Since my App uses very much of them in different variants, that will be a lengthy task. I can't often simply use the *Async without Wait For, since often there are more than one Box in a row in one context. And when I don't Wait For, they come in the wrong sequence.
My actual problem is:
I have a sub in a code module which checks a value, which is called by two different activities. This sub tells the user about the result and returns a boolean value for the calling activity.
Now I can't use Wait For in a code sub. I can't move the sub in one of the activity modules, since the other can't call it directly. I can't simply return the text as string, since I have to return the boolean.
One possibility would be to copy the sub in both activities, but I don't want to do that, it would by risky when something changes with the check.
What's the best way to solve that?