Home All Groups Group Topic Archive Search About

modify a String based upon textbox value



Author
5 Apr 2006 11:23 AM
news
Hello,
Can someone please help to modify my string from the input value in my
inputbox!?

Example from my input box:
- c:\test\att beställa.txt (swedish character)

This is what I need:
- c:\test\att_bestalla.txt
I need to replace the "space" with "_" and replace the swedish character "ä"
with "a"

Can you please paste some example code so I can adjust it for my need's !!??

Thanks // Nils

Author
5 Apr 2006 12:46 PM
Mike Brind
news wrote:
Show quote
> Hello,
> Can someone please help to modify my string from the input value in my
> inputbox!?
>
> Example from my input box:
> - c:\test\att beställa.txt (swedish character)
>
> This is what I need:
> - c:\test\att_bestalla.txt
> I need to replace the "space" with "_" and replace the swedish character "ä"
> with "a"
>
> Can you please paste some example code so I can adjust it for my need's !!??
>
> Thanks // Nils

inputbox = replace(inputbox," ","_")
inputbox = replace(inputbox,"ä","a")

--
Mike Brind

AddThis Social Bookmark Button