Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is parameter an array?
Message
De
10/01/2004 10:16:00
 
 
À
09/01/2004 15:24:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00865548
Message ID:
00865733
Vues:
18
Hi Fred,

------------
Not always true. _SCREEN.Caption[1] doesn't crash and it isn't an array.
But TYPE("_SCREEN.Caption[1]") says "C".

This is not correlate with TYPE() command, but with VFP parser for a property of a object.

This are all valid command!
? _screen.Caption[65000]
? _screen.tag[65000]
? _screen.top[65000]
....
Cause: on VFP a object have two properties lists ( user and baseclass ).

VFP validate the script ( _screen.Caption[66000] is invalid ),
and then scan the list ( user first ) for the property name,
if the property is a scalar it ignore the index parameters.

Fabio
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform