Jump to content
UBot Underground

Save Table, work around until 5.0.2


Recommended Posts

My table saves were empty in V5 and I checked the traker before I entered a bug report. The bug is reported/fix and will be delivered in 5.0.2, so what to do until then? Just convert to text and append the data(you may be able to do this at the list level, I didn't check it)

 

Basically...

1. Set the table row counter

2. Create a loop that runs for the total amount of rows in the table

3. Add the current table row to a list

4. Convert the list to text (comma deleimtited)

5. Append to a file

6. clear the list

7. increment the row counter

 

set(#dns_row_count, 0, "Global")
loop($table total rows(&DNS_settings)) {
    add list to list(%temp_row_list$plugin function("TableCommands.dll""$list from table"&DNS_settings"Row"#dns_row_count), "Delete""Global")
    set(#temp_row$text from list(%temp_row_list","), "Global")
    append to file("dnsinfo-.csv""{#temp_row}{$new line}""End")
    clear list(%temp_row_list)
    increment(#dns_row_count)
}

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...