|
-
Aug 3rd, 2002, 12:55 AM
#13
Originally posted by Zaei
You know, using strings, you could actually add properties to properties...:
Code:
PropThing.AddProperty("Prop1")
PropThing.AddProperty("Prop1.Sub-Prop1")
PropThing.SetProperty("Prop1.Sub-Prop1", 10)
PropThing.SetProperty("Prop2", 20) ' adds a property under the hood
Simple. Since you are simply storing the property name as a string, Prop1, and Prop1.Sub-Prop1 are two unrelated properties... ::shrug:: might be useful =).
Z.
You sure could.
BTW: I like the idea behind the C++ object you mentioned. My only concern about it would be trying to access several properties in a row. Won't there be a performance hit as each query is executed?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|