make a list global

surfmore

Client
Регистрация
08.09.2011
Сообщения
138
Благодарностей
7
Баллы
18
How do I make a list work for all threads?

What I mean is, if a thread takes out a value from the list a second thread running just after will find the list the same way the first one changed?

Should I just keep the change to the file? Or there is a better way?

thanks.
 

krisztos

Client
Регистрация
28.06.2014
Сообщения
175
Благодарностей
8
Баллы
18

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
Do not use faile actions or list processing - save to file
Just add list to your project and in it`s settings set "load from file" and "save changes" checkboxes
 

surfmore

Client
Регистрация
08.09.2011
Сообщения
138
Благодарностей
7
Баллы
18
ok. thanks. Is there a way to lets say we use all the values from a list and updated to the file. So, after we use all the file will be blank/deleted.

How can we check if the file exists / is empty, populate the file again from another file (for example) and make the threads to reload the list from the file.

What i mean is how can instead of save the changes to file, save the file to the list (reload) in the middle of the process.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
Here you go
 

Вложения

surfmore

Client
Регистрация
08.09.2011
Сообщения
138
Благодарностей
7
Баллы
18
What bind to file does? I am trying to find a documentation where it explains each part of zenno like this one and I cant find.

Can you please refer it to me.

thanks.
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
If you want to use variables in file path then you should use bind to file, or if you want that one project list works with more that one files in project then you can also bind to file...
 

surfmore

Client
Регистрация
08.09.2011
Сообщения
138
Благодарностей
7
Баллы
18
I want a list to load from a file in the middle of the project. How do I do that? I know I can load when the project is launched. But couldnt find a way to load ater that.

Bind to file means to attache the content of the list to the end of the file?

Where can I find a wiki for all zenno 5 features explained?
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113

surfmore

Client
Регистрация
08.09.2011
Сообщения
138
Благодарностей
7
Баллы
18

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
i gave you example above.
you use bind to file action when your path to file may change during execution of project. or if you wanna load data from file in the middle of project
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)