Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Beautify bug - and syntax coloring?
Message
From
24/02/2006 17:17:23
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
24/02/2006 14:00:26
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01098909
Message ID:
01099083
Views:
21
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!
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform