Cant use TABLE.getColumnN

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
2 posts • Page 1 of 1
NFedorenko
Posts:45
Joined: Wed Jun 15, 2016 5:41 pm

Cant use TABLE.getColumnN

Post by NFedorenko »

Hello to all.

I need to copy text in column in table to clipboard.
When I use method getColumnN i got:

Code: Select all

 
    Object: 1 named: "DP_TABLE" of type: TABLE
    Script: RightMousePressed
    Line: 23, Attribute "getColumnN" for "setValue()" is unknown for object "DP_TABLE" with type "TABLE"
Also there is one strange thing - i should mention column number (int) but not (string).
Use 3.15 p013 Windows.

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Cant use TABLE.getColumnN

Post by mkoller »

If you want to get the text of ALL cells in a specific column to copy to the clipboard, then you have to iterate over all rows of this column and create one string out of it.
If you want to have the text only from one specific cell, then use cellValueRC.

Also, your error message shows that you used setValue for an attribute named "getColumnN" which is not writable - therefore the error.
And about the strange thing: with "getColumnN" you use an int to address the column. Other functions like cellValueRC pass the column as string.

2 posts • Page 1 of 1