notreuse issue

Support
  • @syrax said in notreuse issue:

    Hi guys,

    I got a string from an excel sheet! I want to loop through it like I normaly do with notreuse. However

    [[SHEET_NOT_REUSE|notreuse]] this dont work with variable
    {{SHEET_NOT_REUSE|notreuse}} This work goods.

    I would love to use the variable, how to fix that?

    Why do you think that the "notreuse" flag will work with a variable? If you have a list (array) in the variable, use the "Foreach" action

  • @Fox

    Hi Fox thanks for your reply. I do not really undestand it. Each line has 3 value's that i want to make vars into a while loop. So like one has name, yes or no, number.

  • @syrax said in notreuse issue:

    @Fox

    Hi Fox thanks for your reply. I do not really undestand it. Each line has 3 value's that i want to make vars into a while loop. So like one has name, yes or no, number.

    You can use a separator in the data and divide the data in a row into the required number of variables

    c337edc4-4620-4290-8bab-833cabd26e1f-изображение.png

  • @Fox said in notreuse issue:

    @syrax said in notreuse issue:

    Hi guys,

    I got a string from an excel sheet! I want to loop through it like I normaly do with notreuse. However

    [[SHEET_NOT_REUSE|notreuse]] this dont work with variable
    {{SHEET_NOT_REUSE|notreuse}} This work goods.

    I would love to use the variable, how to fix that?

    Why do you think that the "notreuse" flag will work with a variable? If you have a list (array) in the variable, use the "Foreach" action

    How can do FOREACH of list and notreuse, i want every thread to get new line from resource list

  • @gudolik said in notreuse issue:

    @Fox said in notreuse issue:

    @syrax said in notreuse issue:

    Hi guys,

    I got a string from an excel sheet! I want to loop through it like I normaly do with notreuse. However

    [[SHEET_NOT_REUSE|notreuse]] this dont work with variable
    {{SHEET_NOT_REUSE|notreuse}} This work goods.

    I would love to use the variable, how to fix that?

    Why do you think that the "notreuse" flag will work with a variable? If you have a list (array) in the variable, use the "Foreach" action

    How can do FOREACH of list and notreuse, i want every thread to get new line from resource list

    Use the "Resource To List" action

  • @Fox said in notreuse issue:

    @gudolik said in notreuse issue:

    @Fox said in notreuse issue:

    @syrax said in notreuse issue:

    Hi guys,

    I got a string from an excel sheet! I want to loop through it like I normaly do with notreuse. However

    [[SHEET_NOT_REUSE|notreuse]] this dont work with variable
    {{SHEET_NOT_REUSE|notreuse}} This work goods.

    I would love to use the variable, how to fix that?

    Why do you think that the "notreuse" flag will work with a variable? If you have a list (array) in the variable, use the "Foreach" action

    How can do FOREACH of list and notreuse, i want every thread to get new line from resource list

    Use the "Resource To List" action

    i think you misunderstand, i ask how to use different line on every new threads,i did already Resource to List because without Resource To List i can't even do Foreach
    Like @syrax says [[SHEET_NOT_REUSE|notreuse]] this dont work with variable
    alt text

  • Just define your resource as "lines from file" and "use each line 1 time", than use it in your
    script as a resource - that will result in each thread taking new line from resource. Dont
    transform it in the list - that way each thread will create its own new list.

  • @GaG I did defined already as you said but cant use resource in foreach, have to transform to list to use it in FOREACH command, otherwise its gets first char of line instead whole line

  • @gudolik

    Dont use foreach at all just use resource name and it will use different line
    in each thread. After that you can parse that resource line if needed. Resources
    are created in BAS with intention to ease up usage with multiple threads.

    When you parse that particular line you can use parsed values, in your case
    3 values and that should be enough to work as intended. But if you want you
    could create a new list and add these 3 values into it and than use "foreach" loop
    against it, but I dont see the reason for that, since you already have 3 separate
    parsed elements with unique names that you choose in parse action, and in each
    thread these unique variables will have different values according to particular
    resource line used in that particular thread.

  • @GaG Unfortunately without foreach just stucks on infinity loop, it's not what i need, i need when 1 url from resource list is checked with every path to move to next url not to end with thread, it's fine on 1 threads but can't get to work multiple threads on BAS

  • Than you might use "global variable" and "OnAplicationStart" function parameter
    maybe to fulfill yourn tasks.

  • -1 Votes
    8 Posts
    862 Views
  • Bandwidth Issue

    Support
    0 Votes
    10 Posts
    969 Views
  • 0 Votes
    3 Posts
    947 Views
  • 0 Votes
    9 Posts
    2447 Views
  • Compilation issues ??

    Support
    0 Votes
    2 Posts
    1006 Views