yes but how to do that in bas ?
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?
-
@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
-
@syrax said in notreuse issue:
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

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

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