02-13-2008 12:09 PM - edited 02-13-2008 12:10 PM
Altenbach,
47 minutes? You must eat lunch at 11:00
Very nice solution.
*****
02-13-2008 04:33 PM
01-21-2009 02:28 PM
01-21-2009 05:19 PM - edited 01-21-2009 05:19 PM
Using "delete from array" in a loop could get expensive with large inputs because the array in the shift register requires a new allocation in memory for each space found. I would not recommend that. Try to find an "in-place" solution. 🙂
Alternatively, just do the following... 😮

01-22-2009 10:06 AM
I actually tried this earlier but I tried to use a string constant with a space in it as the string to replace instead of using the space constant.
Now I now (or know again) about the space constant.
Indeed this is a better solution.
Thanks,
Don
01-22-2009 10:19 AM
DonRoth wrote:I actually tried this earlier but I tried to use a string constant with a space in it as the string to replace instead of using the space constant.
That should work equally well, though. 🙂
01-22-2009 10:29 AM - edited 01-22-2009 10:37 AM
01-22-2009 10:46 AM
Yes, that's probably one of the more confusing behaviors: An empty string constant gets shorter (horizontally) when you type a "space" in it using a proportional font. 😉
I would typically set the display to \-codes to make it more readable.
01-22-2009 10:52 AM