Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generic object property reference
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01013029
Message ID:
01013236
Views:
12
>sergey,
>
>as i noted in the post, amembers only creates an array, that you can use as a pointer to part of an object. with repeated use of amembers on 1st rates, then the individual rate objects of wheelchair, ambulatory etc, i could build pointers to the various properties of each rate. but that wouldnt help with trying to directly address rates.xxx.description for example to test it for 'AM'.
>
>i am looking for a way to say 'show me the value of this objects_itemno'1, 2, 3, 4, etc. thru the whole list of properties of that object without knowing the names of them. i thought for each might be what would be the 'name' of the thing i would be cycling. you cant say 'for each property, do thus and such.
>
>i am beginning to believe there is no native way to address the items in an object w/o knowing its real name. the only thing approximating it is the amembers call.
>

Jim,
AMEMBERS(ArrayName, oRates)
returns the list of ALL properties of the object 'oRates'. If some properties of 'oRates' are objects itself you'll have to use AMEMBERS() function recursively. Anyway the properties of those objects don't belong to 'oRates'.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform