Jump to content
UBot Underground

Is it possible to create a list from a variable?


Recommended Posts

Here is what Im trying to do:

 

add list to list(%GET THE NAME FROM A VARIABLE$plugin function("TableCommands.dll""$list from table"&data"Column"#column number), "Don\'t Delete""Global")

 

Why: 

 

I want to create 10 lists from 1 CSV file but there are certain commands I use on all columns:

Add list to list

set lists position

clear list

the set variable to the first list item

 

If I could choose the name of the list from a variable that would be set from another list I could then just loop everything

 

Im open to ideas, thanks

 

 

Link to post
Share on other sites

you can create list from variable use list from text then insert variable as the text

 

 

 

pftg4

 

I dont think you understood the question he is asking, he is trying to dynamically create lists/tables. 

 

This is not possible, but would be a great addition, been able to condense the code a lot would be possible with this. 

 

Carl  :)

Link to post
Share on other sites

Here you go I think this is what you mean.

 

clear table(&test table)
create table from file("H:\\TC files\\Documents\\Ubot projects\\LAID\\Data\\To do\\test table.csv"&test table)
clear list(%var list)
add list to list(%var list$list from text("A
B
C
D"$new line), "Delete""Global")
loop(4) {
    set(#variable$next list item(%var list), "Global")
    set(#column number$plugin function("TableCommands.dll""$table search"&test table#variable"Column Index"), "Global")
    wait(2)
}
ui stat monitor("Search item\""#variable)
ui stat monitor("Column index"#column number)

 

If not there's a plugin for Dynamic variables around.

 

TC

Link to post
Share on other sites

yep there is that be mine but not a plugin just code

 

 

 

pftg4

I was referring to this...is this yours? if so it's on my to get list.

 

http://www.ubotstudio.com/forum/index.php?/topic/13310-sell-dynamic-variables-by-dave-botgurunet/

 

TC

Link to post
Share on other sites

I believe this code would create a dynamic table but what I am trying to do is determine the actual name of the list dynamically, not its content. Im getting the feeling its not possible though.

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