Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
An anomaly with THIS. in an array reference?
Message
 
 
To
11/12/2001 14:29:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00592852
Message ID:
00592861
Views:
15
Hi Pete,

I've the color for the string literals set to pink and [THIS.arrayindex] shows as a string literal in pink color. I guess it's just the way editor colors code between square bracets'[]' even when they can be used for the different things.

>Why does this happen: In this code snippet,
>
>DIMENSION testarray[1]
>x = testarray(THIS.arrayindex)
>x = testarray[THIS.arrayindex]
>
>the first THIS appears in blue in the design window,
>but the second THIS does not appear in blue.
>
>Neither one generates errors, and both work my program.
>
>....just curious....
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform