I hope someone who is a teacher or technically proficient can help me answer the question.variable and database

Carzer

Новичок
Регистрация
17.07.2023
Сообщения
4
Благодарностей
2
Баллы
3
109513

How should I write this grammar, let if judge the length of the string in this variable.
How should I use the database action? I really don’t know how to use it.
 

myndeswx

Client
Регистрация
15.05.2017
Сообщения
424
Благодарностей
99
Баллы
28
You should use C# block for that
C#:
return project.Variables["BatteryText"].Value.Length;
 

Carzer

Новичок
Регистрация
17.07.2023
Сообщения
4
Благодарностей
2
Баллы
3
myndeswx,帖子:754135,会员:19655 сказал(а):
您应该为此使用 C# 块
C#:
return project.Variables["BatteryText"].Value.Length;
[/引用]
噢,太感谢了,我怎么没想到呢
 
  • Спасибо
Реакции: myndeswx

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 270
Благодарностей
5 856
Баллы
113
You should type it like this:
JavaScript:
'{-Variable.BatteryText-}'.length < 200
 
  • Спасибо
Реакции: Carzer и myndeswx

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 270
Благодарностей
5 856
Баллы
113
As for working with database, you should use these help manuals.
 
  • Спасибо
Реакции: Carzer

Carzer

Новичок
Регистрация
17.07.2023
Сообщения
4
Благодарностей
2
Баллы
3

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