D Daikoku Client Регистрация 23.03.2011 Сообщения 16 Благодарностей 2 Баллы 0 02.04.2011 #1 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.
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.
step85 Client Регистрация 19.02.2010 Сообщения 1 839 Благодарностей 287 Баллы 83 03.04.2011 #2 To cut the excess string - Run it through a regular expression. {10} where 10 - is the number of necessary symbols
To cut the excess string - Run it through a regular expression. {10} where 10 - is the number of necessary symbols
D Daikoku Client Регистрация 23.03.2011 Сообщения 16 Благодарностей 2 Баллы 0 15.04.2011 #3 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.
BlackSun Client Регистрация 24.01.2011 Сообщения 119 Благодарностей 3 Баллы 0 10.05.2011 #4 Daikoku сказал(а): 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;-}
Daikoku сказал(а): 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;-}