B4X:
txtPos.Text=cVal ' i had assumed txtPos_Textchanged event will fire immediatly after this
txtPos.Tag=cKey ' but the flow goes to next line and continues
txtTable.RequestFocus
txtTable.Text=" "
txtTable.Text=""
[\code]
above is a part of a sub. The problem is the execution order of the txtPos_Textchanged and txtTable_Textchanged events.
i found that in some occasions, txtPos_Textchanged event is executed first and some times, txtTable_Textchanged event is executed first and vice versa. The execution order is done randomly.
i found out this in debug mode.