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
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
Supper
ReplyDeleteHi, come to find PowerBuilder resources at my blog http://zulmach.wordpress.com download installer, source code and more
ReplyDelete