Macro for string length

  • Автор темы Автор темы Daikoku
  • Дата начала Дата начала

Daikoku

Client
Регистрация
23.03.2011
Сообщения
16
Реакции
2
Баллы
0
A macro for getting the length of an input string would be great. sometimes input strings are too long in some of my projects and have to be shortened. therefore there should be a macro which returns the string lenth.
 
That works fine but I still need a way to get the length of a string. I need that for some logic operations.
 
That works fine but I still need a way to get the length of a string. I need that for some logic operations.

Yes, finding the length of a string is very useful. It is possible to get it with a small piece of javascript but a macro for this would be great.

Here's how to do with a piece of javascript

Код:
Развернуть Свернуть Копировать
{-JS.Execute-|-var length='{-FieldData.FieldData-|-step-|-branch-}'.length;-}
 

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