PDA

View Full Version : Infinite loop in Handle String Operation : Replace



Jonathan Kay
05-27-2010, 03:52 AM
Hi,

I'm using this function to remove double quotes. The 'Destination' and 'Source' variables are the same, the 'X' parameter is " and the 'Y' parameter is blank.

If the variable is an empty string the function gets stuck in an infinite loop. The workaround is simply to ensure the string is populated before attempting the call but it would be better if it didn't do this!

Jon.

linder
05-27-2010, 03:59 AM
Jonathan,

Hmm, seems to work fine here. I have a blank %TEST% variable and the 'Destination' and 'Source' variables are the same, the 'X' parameter is " and the 'Y' parameter is blank. Could you please send a simple .sb7 project to support [at] lindersoft [dot] com so we can try to reproduce this?

Thanks,
Friedrich

Jonathan Kay
05-27-2010, 05:09 AM
Hmmm, annoyingly I can't reproduce in a simple example! I'll keep trying.

Jon.

linder
05-27-2010, 05:34 AM
Thank you!

Friedrich

Jonathan Kay
05-27-2010, 05:59 AM
Sent to your support email address with comments.

Jon.

linder
05-27-2010, 06:32 AM
Received and we can reproduce the issue. Item in review and will be fixed in the next build.

Thank you.

Friedrich