ISStrings.Item

Description

This property contains the string in the defined position in the list.

Syntax

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

Return Value

string

Example

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)  
Note:

Version information

Added in v7.8.0