Using .NET Interops in VBScript

Using .NET Interops in VBScript – ASP Free.

Set DataList = CreateObject("System.Collections.ArrayList")
DataList.Add "B"
DataList.Add "C"
DataList.Add "E"
DataList.Add "D"
DataList.Add "A"

DataList.Reverse()
DataList.RemoveAt(3)
DataList.Remove(“D”)

arrData = DataList.ToArray
For i = 0 To UBound(arrData)
WScript.Echo arrData(i)
Next

Set sb = CreateObject(“System.Text.StringBuilder”)
sb.AppendFormat_5 Nothing, “{0} is a {1} number” & vbCrLf, Array(1, “loneliest”)
sb.AppendFormat_5 Nothing, “{0} is a {1} number” & vbCrLf, Array(2, “happiest”)
WScript.Echo sb.ToString()

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s