I am trying to Replace som special danish characters in order to get som html-document, which cannot have this characters in their filenames on the server, and therefore is remnamed accordingly.
This code below works fine, when a single special character is found. But it fails if there is more than one special character: Because of the Else if-structure, I know! And I guess I need to set up a Repeat Loop of a kind, but then again: I'm stuck.
word_clicked := WordClicked
find_text_1 := Find("æ"; word_clicked) find_text_2 := Find("ø"; word_clicked) find_text_3 := Find("å"; word_clicked)
if find_text_1 <> 0 then show_text := ReplaceString(word_clicked; find_text_1; 1; "ae") else if find_text_2 <> 0 then show_text := ReplaceString(word_clicked; find_text_2; 1; "oe") else if find_text_3 <> 0 then show_text := ReplaceString(word_clicked; find_text_3; 1; "aa") else show_text := word_clicked end if
Thanks in advance and a happy new year!
Ole Kristensen
-- 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)