Hiding Columns in List View at run time VLWEB

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
soa
Posts: 339
Joined: Mon Dec 07, 2015 3:15 pm

Hiding Columns in List View at run time VLWEB

Post by soa »

I have the following line of code

#lstStudents.Columns<2>.ColumnVisible := false

This appears to hide the column that is second in the list of column fields by alphabetic order by name not in the displayed sequence.

I can work out which number to put in there but is there a way to achieve by column name so that if I add further columns I don't have to recalculate this value?
soa
Posts: 339
Joined: Mon Dec 07, 2015 3:15 pm

Re: Hiding Columns in List View at run time VLWEB

Post by soa »

OK, Forget it. I found

#ColumnXXXXX.ColumnVisible := false
Post Reply