Home > Language Reference > Functions > Strings

RemoveAccents Function

Removes all accents in a string.

Syntax

Public Function RemoveAccents(ByRef sString As String) As String

ParameterDescription
sStringString whose accents are to be removed.

Remarks

The string returned by RemoveAccents is a copy of sString with all accents replaced by their non-accented equivalent. The string parameter sString passed to the function RemoveAccents is not modified. If the argument is empty, RemoveAccents returns an empty string.

This function, as well as functions performing caseless comparisons, only handle the ISO Latin 1 character table. If the device uses a different character encoding, only characters whose code is lower than 128 are processed. This excludes all non latin scripts your device may support thanks to third party applications such as Piloc.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0Restrictions apply on devices running a third party localization application such as Piloc.
Windows CEWindows CE 3.0-