Cnotey 3 Posted November 7, 2015 Report Share Posted November 7, 2015 Hi there, I am wondering what everyone else is doing to cycle through rows of a table with the new thread spawn command? For instance, if you have a table which has a username and password. How are you handling this with the Thread Spawn command? It's not clear to me how the command works behind the scenes to know when to increment the #position variable for table rows. Any insight anyone can offer would be great. Thanks,Cnotey Quote Link to post Share on other sites
deliter 203 Posted November 7, 2015 Report Share Posted November 7, 2015 Probably a better way of doing it,but pass the threadspawn,the row/column number from a list,and in your function,refer to that number,example run code below set(#position,0,"Global")add item to list(%TableItems,"a","Don\'t Delete","Global")add item to list(%TableItems,"b","Don\'t Delete","Global")add list to table as column(&myTable,0,0,%TableItems)define Passing item to function(#num) { alert($table cell(&myTable,#num,0))}loop($table total rows(&myTable)) { add item to list(%items,#position,"Don\'t Delete","Global") increment(#position)}thread spawn($table total rows(&myTable),1) { Passing item to function($next list item(%items))} Quote Link to post Share on other sites
Cnotey 3 Posted November 8, 2015 Author Report Share Posted November 8, 2015 Yea, I don't know about you guys but sometimes I have some crazy tables with 10+ columns in them. Splitting into lists is not an option. Especially when running through 10k+ rows, I want to make sure my data doesn't get mix-and-matched. But thanks for the suggestion! Quote Link to post Share on other sites
deliter 203 Posted November 8, 2015 Report Share Posted November 8, 2015 " doing to cycle through rows of a table" above is to reference the row number {#num} as it cycles through the rows of a tablethe script alerts A(row number 0) followed by B(row number 1)the size of the table makes absolutely no difference,amount of columns make no difference either Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.