05-19-2020 06:28 AM
I'm using TestStand 2016 and want to count the number of substrings. Is there any method or do I have to loop the whole string (trim, count ...)
The Find() function returns only if string contains a substring but not the total number of occurances
Solved! Go to Solution.
05-19-2020 09:52 AM
How about SearchAndReplace? It returns Number numReplacements.
String SearchAndReplace(String string, String searchString, String replacementString, Number startIndex = 0, Boolean ignoreCase = False, Number maxReplacements = -1, Boolean searchInReverse = False, [Out] [Number numReplacements])