This function removes the string from the list.
object.Remove
aIndex
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISStrings interface |
|
aIndex |
In, Required | int |
The index of the line in the string
list |
Remove the 1st line of the string list and display the text.
Dim aStrings
Dim aChangedText
Dim aSourceText
Set aStrings = Profile.CreateStrings
aStrings.Add("FirstLine")
aStrings.Add("SecondLine")
aStrings.Add("ThirdLine")
aSourceText = aStrings.Text
if aStrings.Count > 0 then
aStrings.Remove(0)
end if
aChangedText = aStrings.Text
Profile.MsgBox("Source Text before changes:" & vbNewLine & aSourceText &_
vbNewLine & "Source Text after changes:" & vbNewLine & aChangedText)