Ask Experts Questions for FREE Help !
Ask
    lakhwindergill's Avatar
    lakhwindergill Posts: 1, Reputation: 1
    New Member
     
    #1

    Jan 30, 2006, 01:09 AM
    How cam we remove the blank spaces in a String like " a s k " to make it "ask"
    fredg's Avatar
    fredg Posts: 4,926, Reputation: 674
    Ultra Member
     
    #2

    Jan 30, 2006, 06:51 AM
    Hi,
    Since I don't know exactly what you are trying to do, I will offer this:
    In the "a s k", place the curson right after the "a", can press the Delete key on the keypad. That should delete the space, then do the same right after the "s".
    Best of luck.
    colbtech's Avatar
    colbtech Posts: 748, Reputation: 66
    Senior Member
     
    #3

    Jan 30, 2006, 07:04 AM
    If you know that the string is a series of characters with a space that you wish to remove rather than a sentence. I would be inclined to write a small program something like:

    LET A$ = " a s k "
    LET B$ = ""
    LET L=LEN(A$)
    FOR I=1 TO L
    IF MID$(A$,I,1)=" " THEN MID$(B$,I,1)="" ELSE MID$(B$,I,1)=MID$(A$,I,1)
    NEXT I

    This is a simple BASIC program. Don't even know if it is still used anymore, but the gist of it should be clear(ish)

    Assign A$ to your unknow string.
    Assign B$ to nothing
    Determine the length of your unknown string
    Start loop
    Check if the nth character is a space, if it is don't add that character to B$, if it is then add the character to B$
    Check the next character
    ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man
     
    #4

    Jan 30, 2006, 07:34 AM
    You need to define what you are doing mre completely. I suspect this should have gone in the Programming forum. If so then you need to define what programming language or platform you are using.

    Please post back so we can provide definitive help.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Add/Remove Programs doesn't have REMOVE option [ 4 Answers ]

In Control Panel | Add/Remove Programs on Windows XP Home, some of the programs do not have the REMOVE button below them. WHY not? How do I remove programs from the Add or Remove Function, when it displays the program, but when I highlight it, it doesn't give the option to REMOVE it?

Blank screen [ 3 Answers ]

While on the internet my computer froze up and when I did control alt delete my screen went blank with all wavy lines. I shut the machine off and sbooted up again only to get the blank screen with wavy lines. No matter what I try I cannot get to my desktop. Can anyone help? :eek:

About:blank using XP [ 2 Answers ]

The IE about:blank hijacker has struck me down!! And I need help. I've try about every Adware program available and nothing works. I've try the manual method and run into a snag. The manual method suggests using Reglite.exe to find a hidden file under...

About::blank [ 6 Answers ]

How about a thread dedicated to this homepage change that won't quit, instead of DSO Exploit. I had (maybe still do, hard to tell from all of the threads... ) DSO, I thought that is what was causing my home page to go to about:: blank every time I opened up IE. Does anyone know how to get my own...


View more questions Search