Appendix: Built-in Scripting Language Note: If no value is given for optNumFlag , then 0 is the default. Returned value This function returns a string equal to strReferance minus the specified space characters. The returned value can be stored in any tag of String type. Examples StrTrimAll Eliminates a specific char from the whole string. Syntax StrTrimAll( strReference , optStrTrimChar ) strReference A The source string. optStrTrimChar Char that will be removed from the string. If this parameter is omitted, the space char will be removed from the string, by default. Returned value Returns a string equal to strReference minus the characters removed by the function.
Examples StrUpper Converts a string to all uppercase characters. InduSoft Web Studio Page 475 Value of optNumFlag Description 0 Removes all spaces from both the beginning and the end of the string. 1 Removes all spaces only from the beginning of the string. 2 Removes all spaces only from the end of the string. 3 Removes all spaces except for single spaces between words.
Tag Name Expression Tag StrTrim( " Studio version 7.0 " ) // Returned value = "Studio version 7.0" Tag StrTrim( " Studio version 7.0 ", 0 ) // Returned value = "Studio version 7.0" Tag StrTrim( " Studio version 7.0 ", 1 ) // Returned value = "Studio version 7.0 " Tag StrTrim( " Studio version 7.0 ", 2 ) // Returned value = " Studio version 7.0" Tag StrTrim( " Studio version 7.0 ", 3 ) // Returned value = "Studio version 7.0" Function Group Execution Windows Embedded Thin Client StrTrimAll String Synchronous Supported Supported Supported Tag Name Expression Tag StrTrimAll( "Studio version 7.0 ", " ") // Returned value = "Studioversion7.0" Function Group Execution Windows Embedded Thin Client StrUpper String Synchronous Supported Supported Supported