|
-
Jun 1st, 2007, 12:36 PM
#1
Thread Starter
Lively Member
[RESOLVED] TextBox help
hi,
how to trace whether therz 2 or more Spaces bt.words in a textbox?
Eg: hai hello (ie)2 spaces bt.hai and hello.
 Preethi. 
-
Jun 1st, 2007, 12:43 PM
#2
PowerPoster
Re: TextBox help
We're not talking via SMS here, you *can* say "between" rather than "bt"...you're just confusing matters if you use abbreviations like that :-P
Anyway, the best way to search for double spaces would be instr...instr(text1," ") would return the position in text1 where the double-space occurs.
If you want to *remove* double space and instead put single space, you can use replace in much the same way...text1 = replace(text1, " "," ")
Well, everyone else has been doing it :-)
Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
Expect more to come in future
If I have helped you, RATE ME! :-)
I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!
And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|