Hi
I have a funny problem. When I try in a VBA program to update a Property to a blank or empty line PowerMap keeps the old value. If I use any other string the property is set to the new value.
All my Properties are strings. There is no XFM schema so PowerMap works with sessionbased featuredefinition.
I have no troubles to do the same when I use the "Edit XFM Feature" tool or the Databrowser..
Typical I do something like this:
For i = 1 To UBound(Attributs) oFeature.setProperty Attributs(i).Felt, Attributs(i).Data Next i oFeature.Write False
Any good ideas how I get the blank string into the property ???
Regards
Erik Wirring
Hi. I think XFM will not accept "null" for a property value. It should however accept an empty non-null string. I suggest you try with either "" or maybe the vbnullString built-in object ?
Hope this helps,
Martin
Hi Martin
My string contains a "" and that did not work. Then I tried vbNullString (which I guess is the same as "") and that did not work either.
Then I converted "" to " " (= two spaces) that work!
Thanks for the help
Erik