Jump to content
UBot Underground

Create dynamic name list


Recommended Posts

Hi i want to create a dynamic name list in loop, the liste have the name of one variable which change in loop like this:

loop($list total(%Liste1)) {
    thread {
        set(#NameListe, "toto{#IndexListe}""Global")
        add item to list(%NameListe#EmailFinale"Delete""Global")
    }
    increment(#IndexListe)
}

thanks for your response (sorry for my english i am french)

Link to post
Share on other sites

loop($list total(%Liste1)) {
        set(#NameListe, "toto{#IndexListe}""Global")
        add item to list(%NameListe#NameListe"Delete""Global")
        increment(#IndexListe)
}

 

You should not change a variable that is used within a thread from the outside. If you want to do that, you should put the thread command into a define and hand over the variable to the define command. 

The way you did it in your example above will probably get you in trouble. It might work depending on timing, but it's not clean programming.

 

You might also want to take a look at:

http://www.ubotstudio.com/forum/index.php?/topic/16045-free-bulk-reset-plugin-lists-and-variables/

 

Dan

Link to post
Share on other sites

sorry dan i don't explain very well what i want, i want the name of my list is dynamic in loop:

for exemple :

loop($list total(%Liste1)) {
        set(#NameListe, "toto{#IndexListe}""Global")
        add list to list(%NameListe, "toto", "Delete""Global")

        increment(#IndexListe)
}

%nameliste= toto1

%nameliste= toto2

%nameliste= toto3

it's what i want, the name of my list must be dynamic in my loop (sorry for my english)

thanks dan for your help

Link to post
Share on other sites

sorry dan i don't explain very well what i want, i want the name of my list is dynamic in loop:

for exemple :

loop($list total(%Liste1)) {

        set(#NameListe, "toto{#IndexListe}""Global")

        add list to list(%NameListe, "toto", "Delete""Global")

        increment(#IndexListe)

}

%nameliste= toto1

%nameliste= toto2

%nameliste= toto3

it's what i want, the name of my list must be dynamic in my loop (sorry for my english)

thanks dan for your help

 

That is not possible with regular ubot commands. You can not use a variable as a list name. 

The only way to do something like this is with the following plugin:

http://www.ubotstudio.com/forum/index.php?/topic/16045-free-bulk-reset-plugin-lists-and-variables/

 

But if you explain your goal a little bit, there might be another way to archive it.

Dan

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