I Inman Well-Known Member Licensed User Longtime User May 14, 2011 #1 Is it possible to close one activity from another activity? I desperately need this.
Erel B4X founder Staff member Licensed User Longtime User May 14, 2011 #2 Not directly. You can use a process global flag for this. For example if you need to close Activity1 from Activity2. In Activity1 add a process global boolean variable named: ShouldIClose. In Sub Activity_Resume: Code: If ShouldIClose = True then Activity.Finish ShouldIClose = False End If In Activity2 set Activity1 flag to true when you want it to close. Upvote 0
Not directly. You can use a process global flag for this. For example if you need to close Activity1 from Activity2. In Activity1 add a process global boolean variable named: ShouldIClose. In Sub Activity_Resume: Code: If ShouldIClose = True then Activity.Finish ShouldIClose = False End If In Activity2 set Activity1 flag to true when you want it to close.
I Inman Well-Known Member Licensed User Longtime User May 14, 2011 #3 Interesting solution. I will use this. Thanks Erel. Upvote 0