B bill Client Регистрация 05.07.2014 Сообщения 355 Благодарностей 9 Баллы 18 06.01.2017 #1 say i have a variable and i want to check whether the resulting text from the variable is a certain word or not and either proceed with the job or not... how would i do this?
say i have a variable and i want to check whether the resulting text from the variable is a certain word or not and either proceed with the job or not... how would i do this?
amyboose Client Регистрация 21.04.2016 Сообщения 2 312 Благодарностей 1 191 Баллы 113 06.01.2017 #2 Код: if (instance.ActiveTab.DomText.IndexOf("search_text") == -1) throw new Exception();
B bill Client Регистрация 05.07.2014 Сообщения 355 Благодарностей 9 Баллы 18 06.01.2017 #3 I don't think this is what I'm looking for, because the search text is not in DomText of the tab, it's in a variable
I don't think this is what I'm looking for, because the search text is not in DomText of the tab, it's in a variable
amyboose Client Регистрация 21.04.2016 Сообщения 2 312 Благодарностей 1 191 Баллы 113 06.01.2017 #4 bill сказал(а): I don't think this is what I'm looking for, because the search text is not in DomText of the tab, it's in a variable Нажмите, чтобы раскрыть... Код: if (project.Variables["test"].Value.IndexOf("search_text") == -1) throw new Exception(); Реакции: bill
bill сказал(а): I don't think this is what I'm looking for, because the search text is not in DomText of the tab, it's in a variable Нажмите, чтобы раскрыть... Код: if (project.Variables["test"].Value.IndexOf("search_text") == -1) throw new Exception();