Thank you, Charles
I'll dive into it :-)
Best regards
Ole Kristensen
-----Oprindelig meddelelse----- Fra: Authorware Professional [mailto:AWARE@LISTSERV.CC.KULEUVEN.AC.BE]PÃ¥ vegne af Charles Rholl Sendt: 29. december 2000 17:46 Til: AWARE@LISTSERV.CC.KULEUVEN.AC.BE Emne: Re: aw52: Replace several special charcters in a hotspot-interaction(WordClicked)
OK, Ole, let me try again,
I think all you need to do is use the Replace function one time for each character. The Replace function replaces ALL occurrences of the specified character, so,
word_clicked := WordClicked word_clicked := Replace("æ"; "ae"; word_clicked) word_clicked := Replace("ø"; "oe"; word_clicked) word_clicked := Replace("å"; "aa"; word_clicked)
should do the job.
If you need to replace a lot of characters (more than 6 or 8), you could create a list (or lists) of the characters and replacers and then do a repeat loop:
characterList := ["æ", "ø", "å"] replacerList := ["ae", "oe", "aa"]
word_clicked := WordClicked
repeat with i := 1 to ListCount(characterList) word_clicked := Replace(characterList[i]; replacerList[i]; word_clicked) end repeat
HTH
Charles Rholl TOTO Multimedia
-- The AWARE List http://www.e-media.nl/aware/index.html
Search the Archives http://www.e-media.nl/aware/search.html
Netiquette: - Use descriptive subject fields - Use subject prefixes (A5 , A5Mac , A5Web , KO , UCD , OT)
-- The AWARE List http://www.e-media.nl/aware/index.html
Search the Archives http://www.e-media.nl/aware/search.html
Netiquette: - Use descriptive subject fields - Use subject prefixes (A5 , A5Mac , A5Web , KO , UCD , OT)