This function clears the string list.
object.Clear
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISStrings interface |
Display the text presentation of the string list before and after clearing.
Dim aStrings
Dim aClearedText
Dim aMessage
Set aStrings = Profile.CreateStrings
aStrings.Add("FirstLine")
aStrings.Add("SecondLine")
aStrings.Add("ThirdLine")
aSourceText = aStrings.Text
aStrings.Clear
aClearedText = aStrings.Text
Profile.MsgBox("Source Text:" & vbNewLine & aSourceText & vbNewLine &_
"Cleared Text:" & vbNewLine & aClearedText)