Welcome! Log In Create A New Profile

Advanced

list the names of table column headings in program

Posted by joe crevino 
joe crevino
list the names of table column headings in program
September 30, 2008 02:41PM
How can I get a list of column heading from a table using a program ?

thank you,
joe crevino
Jeff Graham
Re: list the names of table column headings in program
September 30, 2008 03:13PM
Hi Joe,

In the help there is a TableEnumColumn that says it returns the column name.

Jeff
Paulo Oliveira
Re: list the names of table column headings in program
September 30, 2008 06:06PM
if you already know the name of the column use the ..text property, if not use :
ind id int
wcol is string
for ind = 1 to tablecount(table,toclumn)
wcol=TableEnumColumn(table,ind)
info({"table."+wcol}..text)
end

PS: not tested, possible sintax errors, i don't have my WD available.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: