' Rapid-Q by William Yu (c)1999-2000 . ' ================================================================================ ' Upload_il_tuo_script_su_Rapidq.it ' Qstringlist ****** QSTRINGLIST Component ****** QStringList is a component to store and manipulate a list of strings. QStringList Properties Field Type R/W Default Support =============== =============== =============== =============== =============== Duplicates INTEGER RW dupIgnore W Item ARRAY of STRING RW WXG ItemCount INTEGER R WXG Sorted INTEGER RW False W Text STRING RW WXG QStringList Methods Method Type Description Params Support =============== =============== =============== =============== =============== AddItems SUBI Add strings to STRINGs, WXG stringlist Infinite AddList SUB (List AS Append another 1 WXG QStringList) stringlist FUNCTION Build Returns a Build (Start%, End%, deliminated 3 WXG Delim$) AS string STRING Clear SUB Clears entire 0 WXG stringlist DelItems SUBI Delete strings Index #s, WXG by their index Infinite SUB (Index1%, Swap strings at Exchange Index2%) Index1% with 2 WXG Index2% FUNCTION Return Index IndexOf IndexOf% number of 1 WXG (String$) string InsertItem SUB (Index%, Insert string 2 WXG String$) at Index% LoadFromFile SUB (File$) Load text file 1 WXG in stringlist SUB (File AS Load file/ LoadFromStream QStream) memorystream in 1 W stringlist Separates FUNCTION Parse strings by the Parse (Source$, Delim$ and 2 WXG Delim$) AS LONG stores each item in the list Saves SaveToFile SUB (File$) stringlist to 1 WXG file SUB (File AS Load file/ SaveToStream QStream) memorystream in 1 W stringlist Sort SUB Sort the 0 WXG stringlist QStringList Events Event Type Occurs when... Params =================== =================== =================== =================== QStringList Examples DIM StringList1 AS QStringList DIM StringList2 AS QStringList StringList1.AddItems "Oranges","Apples" StringList2.AddItems "Byte","Word","Integer" StringList1.AddList(StringList2) StringList1.Sort ?StringList1.Text ?StringList1.Item(3) ?StringList1.IndexOf("Word") ?StringList1.IndexOf("hi") '------------------------------------------------------- DIM StringList AS QSTRINGLIST StringList.Parse("James:Brown:555-3454:House",":") PRINT StringList.Build(0,StringList.Count-1,",") ' =============================================================================== ' 2003 Holyguard.net - 2007_Abruzzoweb