ISStrings.Remove

Description

This function removes the string from the list.

Syntax

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

Example

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

Version information

Added in v7.8.0