Values not recorded if skipped

Discussions about CSEntry
Post Reply
cwells9
Posts: 5
Joined: April 20th, 2013, 11:30 am

Values not recorded if skipped

Post by cwells9 »

If a field is recorded (let's say A3), but then you return to an earlier question (using MOVE TO A1 statement for example), then the second time around this field is skipped over (i.e. from A2 you skip to A5), CSPro does not appear to be able to read that recorded value in later logic statements.

Example:

PROC A5

if A3(curocc())=2 then skip to A7;
endif;
-------------
It does not seem to know how to read this logic, because it doesn't know the value for A3(curocc()).

It appears that the problem is because a skip automatically sets the skipped variables to NOTAPPL, even if they were previously recorded? Any solutions to getting around this? Maybe something using killfocus / onfocus?
Last edited by cwells9 on April 20th, 2013, 2:35 pm, edited 1 time in total.
Gregory Martin
Posts: 1793
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Values not recorded if skipped

Post by Gregory Martin »

This is the desired behavior of system controlled mode. If you change your data entry application to run in operator controlled mode, you'll be able to access the value. In that mode the value will also be saved to the data file. System controlled mode sets all these skipped values to notappl before saving the file. If you want to access the value in system controlled mode, you can use the visualvalue function:

http://www.csprousers.org/help/html/vis ... nction.htm
PROC A5

    
if visualvalue(A3(curocc())) = 2 then
        
skip to A7;
    
endif;
Post Reply