Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SCATTER in a COM Object
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00834954
Message ID:
00841181
Views:
23
>So this is creating a property array. Is there no way to add and expose
>the data as individual properties themselves?

Kevin,
The code created properties and stored the values in each property. It also created an array to store only the names of the properties it created.

Because you are dealing with a COM object returning another object, the return object is also a COM object. You can't use simple VFP functions like AMEMBERS on a COM object to get a listing of its properties. You have to build that functionality into the COM object. The array is one mechanism.

You could also create a method that returned a string (coma separated, XML, etc.) with a listing of the new properties and use those in your evaluate statement. The new method could use VFP functions to get a listing of the properties and then build the string appropriately.

Regards.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform