Tally List : mailing list management, archiving, and analysis
click for archive home
 
Archive of:
Authorware
MacroMedia AuthorWare
 
home
24 hour view
quick stats
weekly updates
 
all tallylists
corporate solutions
archive your favorite
help / feedback


Search the Tallylist search by keyword:

About Authorware :
product's home
product's list home
 
  Archived TallyList / Authorware: 
Subject: Re: aw52: Replace several special charcters in a hotspot-interaction(WordClicked)
Charles Rholl (103p/+0r)     Posted: Friday 29 Dec 2000
This post: 71 views, +0 rating

You're making it more difficult than it need be. Fortunately, AW engineers have included the Strip function which removes all occurrences of the specified characters. So,

word_clicked := Strip("æøå", WordClicked)

will remove all occurrences of æ, ø, and å.

HTH

Charles Rholl TOTO Multimedia

Ole Kristensen wrote:

> 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)


Similar Subject Line Posts (+/- two weeks of this post)
Re: aw52: Replace several special charcters in a hotspot-interaction(WordClicked)  29 Dec 2000   (128 v/ +0 r)
SV: aw52: Replace several special charcters in a hotspot-interaction(WordClicked)  29 Dec 2000   (143 v/ +0 r)
Re: aw52: Replace several special charcters in a hotspot-interaction(WordClicked)  29 Dec 2000   (136 v/ +0 r)
Re: aw52: Replace several special charcters in a hotspot-interaction(WordClicked)  29 Dec 2000 (this post)   (71 v/ +0 r)
 

Send a reply to the Authorware list!
click to send a reply! NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!)

Feedback: If this post was exceptionally helpful, please help by giving this post a positive review.

 

TallyList : copyright Ububik - 2000