Please enable JavaScript to view this site.

A-Shell Reference

cformat switch: H

Allows you to start with a fixed format source of data (either array or file) and customize it at runtime by making selected columns invisible. Hidden columns are loaded into the list box just like any other data, so you would not want to over-use this technique with large data sets due to the wasted overhead.

Note that the hidden column flag (H) overrides the Dspmin and Dwpwid options.

History

2024 December, A-Shell 7.0.1766:  Support cformat H and HH (hidden items) in property sheet mode.

 

Conditional Hidden Column

Revised December 2024

cformat switch: HH

Acts like H but only if the column is empty (if string) or zero (if numeric).

Comments

The logic supporting this is tied to the data (rather than answer) array load operation. So adding data to the answer array for a previously hidden HH column and and re-entering with XTROP_RESELECT will not cause cause the column to become visible. But adding it to the data array and re-entering with XTROP_REPLACE should reevaluate the column to determine if it should become visible.

In the case of Property Sheets (see History below), in order to re-enter a tree with changes to the contents that would affect the visibility of HH 'columns', it may be necessary to completely delete the tree (XTROP_DELETE) and recreate it (XTROP_CREATE).

Note that checkboxes are normally treated by the HH filtering like string fields, so unchecked boxes (with "0" in the column data) will not be hidden, but empty boxes (" ") will be.  If you want to also hide unchecked boxes ("0"), you can add the  #  cformat code to the checkbox code, e.g. t#HH.

History

2024 December, A-Shell 7.0.1766:  Add support for HH to property sheets..

2024 May, A-Shell 7.0.1759: HH function added to XTREE.