Denethor 1 Posted May 24, 2018 Report Share Posted May 24, 2018 (edited) If I create a table or list in a thread, is that local to that thread or global?I have a multi threaded bot that scrapes a page and stores stuff in a temp list to compare it to a known value I'm looking for.The issue is I think the temp table is being overwritten by the other threads so the compare fails because its now being compared to some other threads expected outcome.IF its global and not local, how can I get around that?I don't see how I can generate a random table/list name and know what to use later? Edited May 24, 2018 by Denethor Quote Link to post Share on other sites
pash 504 Posted May 26, 2018 Report Share Posted May 26, 2018 table not work for thread.https://wiki.ubotstudio.com/wiki/Thread Quote Link to post Share on other sites
UBotBuddy 331 Posted May 27, 2018 Report Share Posted May 27, 2018 Hi Denethor, Pash is correct. However, you can use List and construct each list item as a CSV Row of data. Then at some point in your main bot you can reload the entire List as a Table. I hope that helps you. Buddy Quote Link to post Share on other sites
Denethor 1 Posted June 5, 2018 Author Report Share Posted June 5, 2018 Hi Denethor, Pash is correct. However, you can use List and construct each list item as a CSV Row of data. Then at some point in your main bot you can reload the entire List as a Table. I hope that helps you. BuddySo lists are local and tables are global? Quote Link to post Share on other sites
HelloInsomnia 1103 Posted June 5, 2018 Report Share Posted June 5, 2018 So lists are local and tables are global? Lists can be local if you set them to be under the advanced options (change the list scope there). By default lists are global. Tables are always global. When you work with a local list or variable they are local to the custom command/function - NOT to the thread. I hope this clears it up for you if you have any questions let me know! 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.