i am working on a web interface procedure.
i am trying to build an HTML table one row at a time.
everything works ok, by i am interested in changing the order of the colums according to a theme, or templete.

the row is built by stiching together colum strings from a UDT like:

htmLine = tmpHT.head & tmpHT.type & tmpHT.date & tmpHT.size & tmpHT.file & tmpHT.foot

how can i change this order at run time?
i would like to avoid a 16-way select case, and i would like to ability to omit one of the colums. whatever setting i use would be used for the entire app execution, and i have profiles from an ini file that loads at the beggining, so different patteres could be included in the profile.

i was thinking something like call by name or dimmming a control, but to no avail.

Any Suggestions?