Announcement
Collapse
No announcement yet.
Aggragate objects
Collapse
X
-
Thats an option but I am having a problem with PB returning objects in VBScript. I have an email to support on that but it has been a week now and no response.
-
Originally posted by Thomas Tierney View PostHey all
I would like to aggragate objects off of a single primary object.
For instance, I have an object called foo with 3 object a, b and c. All of these objects have read only properties that will be drived from the main object. I can not see a way to get this information to these objects. In C++ I would pass this info view the constructor but you cant do that here..
What were your solutions?
Thanks
In my class i often add a 'backdoor' interface.
This interface set's the values.
Using a macro i can instantiate and set some data, then it looks a little as there was a constructor with params
Leave a comment:
-
Originally Posted by Thomas Tierney
Thanks Scott, I was afraid of that.. you left out two more options.. Use C++ or VB.
If you know how to do it in VB then you should be able to do it in PB.
Leave a comment:
-
Originally posted by Thomas Tierney View PostThanks Scott, I was afraid of that.. you left out two more options.. Use C++ or VB.
Leave a comment:
-
Thanks Scott, I was afraid of that.. you left out two more options.. Use C++ or VB.
Leave a comment:
-
Originally posted by Thomas Tierney View PostThanks for the response Scott!1
The one problem I am having is conceptualizing setting private/read only data from the base object to the aggragate objects.
Any thoughts?
Leave a comment:
-
Thanks for the response Scott!1
The one problem I am having is conceptualizing setting private/read only data from the base object to the aggragate objects.
Any thoughts?
Leave a comment:
-
You could create an "Initialize" method that can only be called one time right after object creation. It takes what is done in C++ and turns it into two steps. You can set an Instance variable to show that the object has been initialized so subsequent calls to the "Initialize" method would be ignored.
Leave a comment:
-
Aggragate objects
Hey all
I would like to aggragate objects off of a single primary object.
For instance, I have an object called foo with 3 object a, b and c. All of these objects have read only properties that will be drived from the main object. I can not see a way to get this information to these objects. In C++ I would pass this info view the constructor but you cant do that here..
What were your solutions?
ThanksTags: None
Leave a comment: