At 23:05 2016-07-28, "Michael Glassman" MHGlassman@PioneerDrama.com wrote:
I'm afraid I have to disagree with you, Fernando. The DO WHILE approach may not be optimal, but it does work. If you have three consecutive commas, for instance, the first two get changed to one comma on the first loop, leaving two consecutive commas. On the second loop, those are changed to one comma. Honest, the process works fine and executes very quickly in VFP. It's much faster than having to test each and every array element to see if it is empty.
Depending on the length of the string, it might be worth building the new string to save grovelling part of the string again and again.
[snip]
Sincerely,
Gene Wirchenko