This property contains the string in the defined position in the list.
object.Item(aIndex)
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISStrings interface |
|
aIndex |
In, Required | int |
The index of the string in the list |
string
Display the text and the names of added values.
Dim aStrings
Dim aMessage
Set aStrings = Profile.CreateStrings
aStrings.AddAsNameValue "FirstName", "John"
aStrings.AddAsNameValue "Surname", "Smith"
aMessage = "TEXT : " & vbNewLine & aStrings.Text
aMessage = aMessage & vbNewLine & "NAMES : " & vbNewLine
for i = 0 to aStrings.Count - 1
aMessage = aMessage & " Name #" & i & " = " & aStrings.Names(i) & vbNewLine
next
Profile.MsgBox(aMessage)