I have a screen built from multiple formats - say fmt1, fmt2, fmt3 & fmt4.
/free write fmt1; write fmt2; write fmt3; exfmt fmt4; read fmt3; /end-free
Fmt3 & Fmt4 have input capable fields, and I need to be able to indicate and error on these fields and force a position cursor. From my experimentation: setting the indicators for fields on Fmt4 will result in color(red) and dspatr(pc) working. But setting the indicatiors for fields on Fmt3 only results in color(red), the dspatr(pc) is ignored.
My assumption is that DSPATR(PC) only works on fields in the active record (in this case Fmt4). Does anyone know of a way to get cursor position on Fmt3 fields without resorting to manual cursor placement OR making Fmt3 my active (If I make Fmt3 active then fields on Fmt4 won't dspatr(pc)!!).