skipping without loosing data

Discussions about CSEntry
Post Reply
kakinyim
Posts: 42
Joined: January 16th, 2012, 6:38 am
Location: Remote/Virtual

skipping without loosing data

Post by kakinyim »

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
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: skipping without loosing data

Post by josh »

You can use move but add the advance keyword to avoid skipping:

move to MY_FIELD advance;
Saint
Posts: 63
Joined: November 22nd, 2013, 4:59 am

Re: skipping without loosing data

Post by Saint »

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.
Post Reply