Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

textbox

hiya all
how do i remove the first and last characters from a textbox
please help
thankx in advance
Rob
[135 byte] By [Spumbu1977] at [2007-11-11 8:07:42]
# 1 Re: textbox
You can use the Left$ and Right$ functions or the Mid$ function.
pclement at 2007-11-11 17:25:52 >
# 2 Re: textbox
dont suppose you could give me a shove in the right direction on how to get started please

many thanks
Spumbu1977 at 2007-11-11 17:27:03 >
# 3 Re: textbox
NewText=mid$(textbox.text,2,len(textbox.text)-2)

where ,2, specifies the first char you want to pick up - namely the 2nd char, and len(textbox.text) specifies the no. of chars in total, and so len(textbox.text) -2 will be the no. of chars returned.
gupex at 2007-11-11 17:28:01 >
# 4 Re: textbox
that worked great ..

many thanks mate
Rob
Spumbu1977 at 2007-11-11 17:29:03 >