How to quickly insert 10000 strings into a list at once

paydot

Client
Регистрация
21.11.2012
Сообщения
56
Благодарностей
1
Баллы
8
How to quickly insert 10,000 strings into a list at once
example
insert 10000 times "blackhatworld.com" to listA

THX
best wishes
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
How to quickly insert 10,000 strings into a list at once
example
insert 10000 times "blackhatworld.com" to listA

THX
best wishes
I can only tell some C#
Very useful snippet when you want to use action keyboard emulation and want to press, example DOWN button random times.

that same snippet you can use to generate any amount of repeated strings to the variable, then insert in the list.
 
  • Спасибо
Реакции: paydot

paydot

Client
Регистрация
21.11.2012
Сообщения
56
Благодарностей
1
Баллы
8
I can only tell some C#
Very useful snippet when you want to use action keyboard emulation and want to press, example DOWN button random times.

that same snippet you can use to generate any amount of repeated strings to the variable, then insert in the list.
THX
i use this code
it work
int count = Convert.ToInt32(project.Variables["company_count"].Value);
// What to repeat
string word = "{DOWN}\n"; // You can change word "{Down}" to whatever you need
// Building string
string repeatWords = String.Concat(Enumerable.Repeat(word, count));
return repeatWords;
 

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