Jump to content
UBot Underground

Copy And Paste A Table Row To A New Table


Recommended Posts

is there a way to copy and past a table row structurally intact.

i need to pull out rows from a table and paste them into another table, the problem is not all cells are occupied in all rows

Link to post
Share on other sites

Yea of course, a couple of ways I think but first that comes to mind is if you have updates you can do this:

clear table(&table1)
set table cell(&table1,0,0,00)
set table cell(&table1,0,2,02)
set table cell(&table1,0,5,05)
set table cell(&table1,1,1,11)
set table cell(&table1,4,4,44)
clear table(&table2)
set(#row,0,"Global")
loop($table total rows(&table1)) {
    set(#column,0,"Global")
    with every cell in row(&table1,#row,#cell) {
        set table cell(&table2,#row,#column,#cell)
        increment(#column)
    }
    increment(#row)
}
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...