Monday, January 21, 2013

Get a List of Column Names in a DataWindow using Describe()

string colname, colvariable int i, icount
icount = integer(dw_1.describe('DataWindow.Column.Count'))
FOR i = 1 TO icount
  colvariable = '#'+string(i)+'.name'
  colname = dw_1.describe(colvariable)   // #1.name, #2.name, etc
  Messagebox ('Information', 'Column name of column #' + string (i) + ' is ' + colname)
NEXT

2 comments:

  1. Hi, come to find PowerBuilder resources at my blog http://zulmach.wordpress.com download installer, source code and more

    ReplyDelete