>These do NOT work from the Command Window, but when I pasted them into a .prg and ran it I got no compile error and I got "abcdef" as result of the first and "abc" for the second.
>
>To me the second represents an example of the long-standing bug with VFp editor's colour coding.
>
>These should also work with VFP6 the same way.
Yes, indeed. They work with VFP6 as you stated.
So, I can use version 1 to get the expected results. And, I see I don't need to post anything to enhancement-requests.
I had tried these two versions only in the command window.
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)