Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add Properties to Scatter Name Object?
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00516849
Message ID:
00516853
Views:
12
>I just did "scatter name oMigrate" and then tried to add my own property to it by "oMigrate.cExtraVar = 'hello'" and it didn't work.
>
>How do I add a property to this kind of object?
>
>TIA.

Steve,

This type of "object" does not have an AddProperty method. About the best you can do is create a custom class micmicking the object an pass the variable to it for assignment. Of note in this is that you can GATHER from such an object, and, if _Access methods are present for any of the table's field name in the object, they fire.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform