How to use DataContainerDefinition instruction properly via winwrapbasic
Answered
Hello experts,
I missing a lot the old mindmanger forum. My question is as follows:
I am programming with winwrapbaisc; and i am not able to use properly the instructions:
DataContainerDefinition,
CustomDataContainerDefinition
.CustomPropertyDefinitionCollection.
AddCustomPropertyDefinition
I want to add options in a property option list inside a datacontainer topic using this instructions; the idea is doing this programatically; does anyone can help me with an example about how to do this ?
thank you so much for your attention
regards
Luis
Hi Luis,
Maybe Nick Duffill can help you with this?
Hi Luis,
Maybe Nick Duffill can help you with this?
Hello Luis
The attached macro file has example routines for finding, asserting, reading and writing an integer property. Hopefully you will be able to see how to work with other value formats from this example.
The CustomPropertyCollection is not indexed by URI, so to find properties you have to iterate over the collection.
The URI for a custom property only needs to be a unique string. URLs are often used, but this does not mean that there is anything at the other end of the URL. The URI and value should be XML-safe to avoid any problems with reading back what has been written especially if it contains any white space.
Hello Luis
The attached macro file has example routines for finding, asserting, reading and writing an integer property. Hopefully you will be able to see how to work with other value formats from this example.
The CustomPropertyCollection is not indexed by URI, so to find properties you have to iterate over the collection.
The URI for a custom property only needs to be a unique string. URLs are often used, but this does not mean that there is anything at the other end of the URL. The URI and value should be XML-safe to avoid any problems with reading back what has been written especially if it contains any white space.
---