Strip special characters from a string

Category:
String Manipulation
Type:
Snippets
Difficulty:
Beginning
Author:
Intelligent Solutions Inc.

Version Compatibility:

More information:
In some situations, you may want to strip special characters (those with an ASCII value above 127) from a string. For example, some XML parsers work with 7-bit ASCII values only.

This function strips all characters with an ASCII value of 128 or higher from a string. In other words, it converts an 8-bit ASCII value into a 7-bit ASCII value.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: