Click to See Complete Forum and Search --> : search in richtextbox


ant
June 26th, 2001, 10:54 AM
when the user clicks a button, how do you make it so that for every "t" in the textbox, it adds an item to a listbox??

--Ant
--------------------------------------------------
check out my newest freeware
E-mail me at: cgeorge@thevortex.com
for the address

Clearcode
June 26th, 2001, 10:57 AM
Dim sRemaining as string

sRemaining = Text1.Text
While Instr(sRemaining,"t") > 0
sRemaining = mid$(sRemaining,Instr(sRemaining,"t") +1)
Listbox1.addItem "Letter T found again"
Wend





HTH,
D

-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com