Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Curtis
2018-11-26T19:13:17Z
The CountOccurencies functionality is not working with the upgrade to 8.4.0. The new version is not counting the string unless it is surrounded by spaces as it previously did for multiple versions/years.

For Example, the following commands are now returning different results:
{STRING(CountOccurencies|One blah1 has an extra digit and the other blah does not|blah)}

Previous Versions returned 2 and now it is only returning 1.

Please advise.

Thanks,
Curtis
Sponsor
Forum information
ACS
2018-11-27T22:25:11Z
I found the same issue with 8.4.0.
I found that if I tried to count commas in a string, it will return one less than the actual number in the string.
I added an underscore to the end of the string and it works fine now.
It caused us much grief as well!!!!!!!!!!!

{STRING(CountOccurencies|B,)} returns 0
{STRING(CountOccurencies|B,_)} returns 1, which is correct.
Curtis
2018-11-28T21:13:44Z
Is there any update on this yet? We had to downgrade yesterday for a fix.

Thanks
Gary_W
2018-11-28T22:40:09Z
While not a fix, an alternate way that does not alter your original string. Replace characters that are NOT the delimiter (comma) with nothing, then count what's left (the delimiters). Caveat: still counts a delimiter inside of a quote.

{STRING(Length|{REGEX(Replace|,"b,b"abdeff,b,c,123d,|[^,]|)})}
6
Support
2018-11-29T07:35:31Z
Thanks for the reports, we are looking at this.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2018-11-29T10:37:19Z
ldcron
2018-12-03T18:58:38Z
The 8.4.1 BETA CountOccurencies functionality seems to be working again for us.

Thanks!
Scroll to Top