Hi Tore,
Read my reply to Cindy. Sorry to give the impression that I used a variable named 'C':)
Cetin
>>Hi Cetin,
>>
>>So, the problem is that it changes the 'C' in the Dimension statement to the Local c, causing the array to be dimensioned incorrectly.
>>
>>Have you considered not using "c" as a local variable? You could consider it like a reserved word, along with L, O, N, etc. I find Hungarian prefixes solve lots of problems with keywords!
>
>As a matter of fact, C is a reserved word!
>
>>As an interesting side issue, I back-highlight strings. It makes it easy to know that you've matched " with " and not " with '. Since Fox considers [ and ] as string delimiters, I don't usually use them for arrays; I use parentheses.
>>
>>What I get for the Dimension line is
Dimension aTest
[ Iif(Type('aTest[1]')='c',
Alen(aTest)+1,1) ], where the red is my back-highlight.
>>
>>What appears to happen (as I type) is that the parser ignores the second open bracket and ends the string with the first close bracket. Then it parses from the second quote to the third quote as another string. Finally the last end bracket is left dangling. The parser doesn't see it as closing the first open bracket.
>>
>>I'd call this a bug also, but I'm sure the Fox team wouldn't prioritize it very highly!