Stand: 07.07.2009
EULANDAŽ ERP System Head Start thru Technology
The String-list Help-Object serves as memory for texts, which consist of several lines. The individual lines can be accessed over its ordinale position (index of zero beginning).
Application example of the kernel functions of the string list object
VBScript dim s, SL ' Creates a new string list object Set SL = CreateObject("Eulanda.StringList") ' Adds three text lines SL.Add "Bananas" SL.Add "Oranges" SL.Add "Apricots" ' Sort the list SL.Sort ' Shows the sorted text MsgBox SL.Text ' The third line (! Index 2, because the index begins with 0 ) is manipulated s = SL.Strings(2) s = s & "-juice" SL.Strings(2) = s ' Alternatively you could write the last action as SL.Strings(2) = SL.Strings(2) & "-juice" ' Renewed indicate of the text MsgBox SL.Text ' Save the text on the local memory SL.SaveToFile "C:\Obst.txt" ' Release of the object Set SL = Nothing