Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
An anomaly with THIS. in an array reference?
Message
 
 
À
11/12/2001 14:29:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00592852
Message ID:
00592861
Vues:
14
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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform