I have a program that shows data in a table and uses two views of the table with most of the columns visible (one is not meant for viewing) or a subset.
I allow the data to be saved and restored via CSV or XML formats.
When restoring from XML I find that all the column widths which were set by AddCol() or subsequently by ColWidth() = are now set to some default value (so that even the column meant to be invisible can be seen).
Perhaps this is just a side effect of LoadXML (though I cannot see why this should not be a bug). So I expected to get round it just by using the code that already works in reverting from subset to full viewing. But I find that after LoadXML the ColWidth() = code no longer works at all!
I attach a zipped source with two example data files in CSV and XML format. You will see that it works fine under the desktop IDE with either CSV or XML. But when compiled the fault appears.
Mike.
I allow the data to be saved and restored via CSV or XML formats.
When restoring from XML I find that all the column widths which were set by AddCol() or subsequently by ColWidth() = are now set to some default value (so that even the column meant to be invisible can be seen).
Perhaps this is just a side effect of LoadXML (though I cannot see why this should not be a bug). So I expected to get round it just by using the code that already works in reverting from subset to full viewing. But I find that after LoadXML the ColWidth() = code no longer works at all!
I attach a zipped source with two example data files in CSV and XML format. You will see that it works fine under the desktop IDE with either CSV or XML. But when compiled the fault appears.
Mike.