New flag values in XTR'EXPANDLEVEL field may be used to save and restore the expand/collapse status of every row to when re-entering with XTROP_REPLACE:
Symbol |
Value |
Description |
---|---|---|
XTEXPF_SAVE |
&h40 |
Save current expand/collapse status on exit |
XTEXPF_RESTORE |
&h80 |
Restore saved status (on XTROP_REPLACE reentry) |
Note that XTEXPF_SAVE can be used with any of the existing values in XTR'EXPANDLEVEL to start out with the specified uniform level of expansion but save the user-modified status on exit. But XTEXPF_RESTORE overrides all other options (unless there was no previously saved status, in which case XTEXPF_RESTORE is ignored).
Also note: the assumption here is that the XTROP_REPLACE re-entry isn't rearranging any of the rows, since the expand/collapse status is only associated with the row numbers as displayed; changing the sort on re-entry would mix it all up.