Jump to content

Recommended Posts

Posted

Hi everybody

First sorry for my bad english.

I want to know how can i prevent accents in a inputbox but not for all.

In my first inputbox > Prevent accents

In my second inputbox > Authorize accents

and how to convert accents with no accents when user write in imputbox (like stringreplace($my_inputbox, "é", "e")

I hope i'm clear :)

Thanks for help

Posted

Local $aConvert[7][2] = [["[àáâãäå]","a"],["[éèêë]","e"],["[ìíîï]","i"],["ñ","n"],["[òóôõö]","o"],["[ùúûü]","u"],["[ýÿ]","y"]]

$in = "èïabcåñ heýýoü"

For $i = 0 to 6
    $in = StringRegExpReplace($in, $aConvert[$i][0], $aConvert[$i][1])
Next

MsgBox (0, "result", $in)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...