Jump to content

Recommended Posts

Posted

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

  • 4 years later...
Posted

cols = [

DataValueCursor.CreateFormatted(MyTable.Columns['col1']),

DataValueCursor.CreateFormatted(MyTable.Columns['col2']),

]

 

for row in MyTable.GetRows(*cols):

print cols[0].CurrentValuelike so :-)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...