How to find the column names in power builder application

Hi,

 

I have this code

set total = pbwindow().pbwindow().pbdatawindow().columncount

I get the total number of columns. Now  I like to get all the column names in the table. How do I get it?

Parents
  • Have you not tried getting the row count too and use function GetCellData(row,column). Use nested for loops to read the entire table.

    May be even write a reusable function to suite your needs.

    [If this post solves or helps solve your issue, mark the thread as solved and give KUDOS to the author for their assistance.]

    (Opinions expressed in my postings are mine alone, and do not reflect the opinions of my employer.No warranties express or implied for any solution/suggestion posted)

Reply
  • Have you not tried getting the row count too and use function GetCellData(row,column). Use nested for loops to read the entire table.

    May be even write a reusable function to suite your needs.

    [If this post solves or helps solve your issue, mark the thread as solved and give KUDOS to the author for their assistance.]

    (Opinions expressed in my postings are mine alone, and do not reflect the opinions of my employer.No warranties express or implied for any solution/suggestion posted)

Children
No Data