multiple lines to a variable from a list

abccba

Client
Регистрация
28.12.2011
Сообщения
30
Благодарностей
0
Баллы
6
Old time zennoposter here.

I'm trying to find the function where I can just select number of lines to take from a list and put to a variable.

Seems only way to do this now is :

select sublist from a list
save sublist to a .txt file
take text and put to variable


I remember years ago someone promising us that they would just include these super old and useful macro things again that everyone misses :P Why was this ever taken out?
 

Hartwell

Client
Регистрация
25.09.2014
Сообщения
194
Благодарностей
118
Баллы
43
Add action C# code

Код:
string num_str = Convert.ToString(project.Variables["varible_with_number"].Value);
return project.Lists["List 1"].GetItem(num_str);
Put in "varible_with_number" your name which contain line number to select
Write here "List 1" name of list with strings (contains variables to set by number)

Turn off box "do not return result" (or something like this.
Set in select form your final variable name.

For multiple, if need, can modify code, or simply create new actions
 

lokiys

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

I'm trying to find the function where I can just select number of lines to take from a list and put to a variable.

Seems only way to do this now is :

select sublist from a list
save sublist to a .txt file
take text and put to variable


I remember years ago someone promising us that they would just include these super old and useful macro things again that everyone misses :P Why was this ever taken out?
Select sublist with desired range then Merges sublist List items, will merge all sublist items into variable.
 

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