It´s nothing more than i used the name
teststring in act 1 and the name of the parameter in act 2 is
text. But it is the contents of teststring which will arrive in act2 under the name text.
They are both strings, yes. But you must understand how parameters works in b4a... i dont "give" a variableNAME to a sub called with callsubdelayed. I give an object. In this case it is a STRING...
The names can diff between act1 where they are DIMmed and the name which is used in the sub ShowText... The point is that the String-
Object is given to this sub. Not its name.
Maybe such situations are easier to understand when you have worked with b4a more.
If i name both to
text then it would work also, yes. But if some error occurs with the string
text i must look at act1 AND act 2 to find the error.
In my -working - example i have used two different names.
if i have an error with
text then i only look at act1 cause i have this name only there.
if i have an error with
teststring then i only look at act2 cause i have this name only there.
In fact; i´m faster in debugging a error...
I do that automatically without thinking over it. It´s routine i learned in the last 25 years of programming