Adds a new item to the collection.Syntax:
object.Add(string)
IDL definition:
[id(3), helpstring("method Add")] HRESULT Add([in] VARIANT varItem, [out, retval] VARIANT* pvarReturn);
Parameters:
object - Previously created UtilStringList object
string - VARIANT that will be added to the collection
Passed item (string) is always explicitly converted to the string type (VT_BSTR).
Method fails if the conversion fails and returns COM error.
Method always returns VT_EMPTY.
Examples:
var item = "My Item";
strlist.Add(item);
Dim item
item = "Some text"
strlist.Add(item)
Applies to: UtilStringList
See also: Item property
|