Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is parameter an array?
Message
From
10/01/2004 10:16:00
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00865548
Message ID:
00865733
Views:
16
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
Previous
Reply
Map
View

Click here to load this message in the networking platform