replace ()

How could you use vb replace function to replace anscii special characters?
LVL 8
thenoneAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dmitryz6Commented:
you need to know anscii code

replace("Yourstring",Chr(34),"a")
0
GrahamSkanRetiredCommented:
Replace (strExample, chr$(ancsiiNumber), srtWhatever)
0
GrahamSkanRetiredCommented:
Oops. Sorry dmirty, cross-posted (again)
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

thenoneAuthor Commented:
which number is it dec,hex or html number
0
bingieCommented:
0
thenoneAuthor Commented:
What if its a hexa decimal number for example upside down ? mark
0
bingieCommented:
0
Harisha M GEngineerCommented:
More info on ASCII: http://en.wikipedia.org/wiki/ASCII

To replace ¿ to, say, "Inverted ?" use

yourstr = Replace(yourstr,Chr(191),"Inverted ?")

or if you want "Inverted ?" to be changed to ¿ then use

yourstr = Replace(yourstr,"Inverted ?",Chr(191))

Note that you can also use "¿"  or Chr(H191) instead of Chr(191)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
thenoneAuthor Commented:
what is the special character code for  € I can't find it anywhere.

Also how can i replace s sequence for exmple (1) to (100000) is this possible?
0
mbizupCommented:
You can use an ascii chart, or use this to find the ascii value of any character:

asc("€")

(in this case the value is 128)

0
Harisha M GEngineerCommented:
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.