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.


beechc
2015-03-30T20:36:24Z
Hi there.

I am having an issue with the Trim functions after having upgraded to 7.6.3 over the weekend using the auto update. It is the same issue that was reported in the 7.2.0 beta thread at the time with the String.TrimEnd function not actually returning the trimmed value. This is present in the 'Variables' window examples.

It appears String.TrimChars is also misbehaving.

Please take a look at this.
Sponsor
Forum information
Support
2015-03-31T07:20:23Z
The current behavior is the .NET behavior of TrimEnd. In short:

The TrimEnd method removes from the current string all trailing characters that are in the trimChars parameter. The trim operation stops when the first character that is not in trimChars is encountered at the end of the string. For example, if the current string is "123abc456xyz789" and trimChars contains the digits from "1" through "9", the TrimEnd method returns "123abc456xyz".

MSDN link 

That said, we might change this method for next build to behave as you normally thing it would.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
beechc
2015-03-31T11:14:11Z
Good morning.
I agree with you with what it should do. The reality is that it isn't doing what it should.

I used your example in the variables window to demonstrate, but is true in the workflow as well. Please see the attached.
Screen Shot 2015-03-31 at 7_11_05 AM.png

/c
Support
2015-03-31T11:49:00Z
Update: We have now fixed this in the beta of 7.6.4: http://www.visualcron.co....aspx?g=posts&t=4886 

Please test.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top