Ditza Noy Posted May 20, 2015 Posted May 20, 2015 Hi,This is my code: MyTable=Document.Data.Tables['tableName']col1=DataValueCursor.CreateFormatted(MyTable.Columns['col1'])col2=DataValueCursor.CreateFormatted(MyTable.Columns['col2'])for row in MyTable.GetRows(col1,col2): print col1.CurrentValue Is there is a way to change it to be something like thatcols=[col1 col2]for row in MyTable.GetRows(cols): print cols[1].CurrentValue
Eike Foken Posted June 24, 2019 Posted June 24, 2019 cols = [ DataValueCursor.CreateFormatted(MyTable.Columns['col1']), DataValueCursor.CreateFormatted(MyTable.Columns['col2']), ] for row in MyTable.GetRows(*cols): print cols[0].CurrentValuelike so :-)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now