Can anyone tell me how can i remove all unwanted characters from a string..
Characters like, ......

Use REPLACE function.

MsgBox Replace("Stoped", "ed", "")

This example removes the "ed" letters from string and show "Stop" on dialog.

Please refer to VB6 help to see the other optional parameters used. You can control where to begin replacing (default is first character), how many times replaces can occur (if you wish to limit replacing operating), if it's case sensitive or not...


Regards,
Sidnei

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.