Am trying to implement a app in which I intend to trap when keyer presses escape or back key on Android. If the key is pressed, I pop a message for keyer to confirm if they want to cancel interview. If they truly wish to cancel the interview, I allow them to give a comment of why they are cancelling. To get to this comment, I will have to skip a couple of fields to reach comment question. Am using system controlled mode, which means, all skipped data is deleted. I dont want this to happen. Does anyone know a better approach? Am using Move statement which looks like it skip statement.
MK
skipping without loosing data
Re: skipping without loosing data
You can use move but add the advance keyword to avoid skipping:
move to MY_FIELD advance;
move to MY_FIELD advance;
Re: skipping without loosing data
Move with advance will evaluate all the logic in-between the field on which the escape was pressed and the comment field. If some of these fields are numeric and have not been passed, then there is going to be a problem of invalid entries. What I will do is to put the comment field much earlier in the program but pass it unless the escape key is pressed.