Jump to content



Photo

Tables And Lists In A Thread Local Or Global?

thread table list

  • Please log in to reply
4 replies to this topic

#1 Denethor

Denethor

    Advanced Member

  • Members
  • PipPipPip
  • 51 posts
  • OS:Windows Vista
  • Total Memory:4Gb
  • Framework:v3.5 & v4.0
  • License:Professional Edition

Posted 24 May 2018 - 06:56 AM

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 by Denethor, 24 May 2018 - 06:59 AM.


#2 pash

pash

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 3334 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 25 May 2018 - 07:50 PM

table not work for thread.

https://wiki.ubotstu...com/wiki/Thread


New Plugin:: Advanced Facebook | Advanced Connection | Advanced Twitter | Advanced Email | Advanced PowerPoint
- Advanced Data Text File | Advanced DateTime | Advanced Dialog | Advanced Document | Advanced Google Blogger V3 | Advanced Google Drive | Advanced Google YouTube V3 | Advanced Image | Advanced Video | Advanced Screen and Windows | Advanced Systems | Advanced Ubot 1 | Advanced Ubot 2 | Advanced WordPress | Advanced Connection | Advanced Twitter | Advanced Email | Advanced PowerPoint

- Advanced Captcha (V3) | Advanced Captcha (V2) (Old) | Create Table From Excel (Lite) | Check Conection | Ubot Enter License | Auto Free Memory
- Working hours GMT+7. i regret sometimes the answer is delayed due to health problems.


#3 UBotBuddy

UBotBuddy

    UBot Studio Training

  • ADMIN
  • 3523 posts
  • LocationVirginia
  • OS:Windows 10
  • Total Memory:8Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 27 May 2018 - 04:36 AM

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


UBot Training for FREE! Yes, that is correct!

#4 Denethor

Denethor

    Advanced Member

  • Members
  • PipPipPip
  • 51 posts
  • OS:Windows Vista
  • Total Memory:4Gb
  • Framework:v3.5 & v4.0
  • License:Professional Edition

Posted 05 June 2018 - 08:37 AM

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

So lists are local and tables are global?



#5 HelloInsomnia

HelloInsomnia

    Advanced Member

  • Moderators
  • 3129 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 05 June 2018 - 02:25 PM

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!







Also tagged with one or more of these keywords: thread, table, list

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users