Hello guys,
I have an activity (activity A), that initialized a class.
In this class, there is another call to a sub in other activity (activity B), the class using CallSubDelayed to call a sub in activity B.
Activity B waiting input from user and after finished, values from user passed to the class using CallSubDelayed, but the problem is, values didn't pass.
On log window, there is a message : Object context is paused. Ignoring CallSubDelayed.
I know that the object that initialized the class , which is activity A, is paused.
Class need to wait user finished input values in activity B, before continuing proses.
Codes in activity A
Sub btn_click
MyClass.Initialiazed(Activity,Me,"My_Class_Done")
End Sub
Sub my_Class_Done(Val() as String)
Log(Val(0))
Log(Val(1))
Log(Val(2))
End Sub
Codes in MyClass
Sub lbl_click
Private m as map
m.Initialize
m.Put("CallFrom",Me)
m.Put("Sub2Call","Dpt_Rsl")
CallSubDelayed2(ActivityB,"Show",m)
End Sub
Sub Dpt_Rsl(Val() as String)
IdDpt = Val(0)
txtCnt.RequestFocus
End Sub
Codes in activity B
Sub btnOK_click
Private Val(3) as String
Val(0) = 1
Val(1) = "ABC"
Val(2) = "test"
CallSubDelayed2(MyClass,"Dpt_Rsl",Val) 'this sub in Myclass never called
End Sub
So, is there a way to pass value in activity B after user input finished and then pass those values to the Myclass?