# Get doc.strings

#1

Hi,

I’m able to SetDocumentUserText by RhinoDoc.ActiveDoc.Strings.SetString(“Key”, “Value”)
But how am I supposed to get that information?

I’ve tried:

• doc.Strings.GetSectionNames but that returns nothing.
• doc.strings.count return the total Strings I Set so that works

Do I need to:

``````Dim Value as List(of string)
Dim Key as List(of string)

For I = 0 to doc.strings.count
Next
``````

?

Or is there an easier way?

(Menno Deij - van Rijswijk) #2

That seems to be the only way.

#3

Oke thanks. Then I’ll be doing that