Problems writing a Script ! Pls HELP !
Klaus Major
klaus at major-k.de
Thu Jun 17 00:45:29 EDT 2004
Hi Theo :-)
> Hi,
> I have a Problem ... for school i have to write a little program wich
> translates a normal text into a text written with the morse codes ! I
> have
> started but i am stuck at the point that metacard only translates one
> single
> letter .... it's really frustrating i have beening trying out
> everything for
> about 5 days now.... ! (i am using MetaCard for 4 weeks now!) I think
> i have
> to make some sort of repeat loop so that metacard checks every word
> and then
> puts the morse cord in for each word and doesn'T just put in the code
> for
> the last letter...PLEASE help me !! I am loosing hope that its even
> possible
> ...here's my Script sofar ... (only got the letters a;b;c cause no
> üonit of
> doing every letter if the first three ain'T working !
>
> on mouseUp
> put empty into field "morsetext"
> put empty into field "standardtext"
> ask "What would you like to translate?? Was hätten Sie gern
> übersetzt ??"
> if it is not empty then
> set the cursor to watch
> put it into field "standardtext"
> put "it" into field "morsetext"
> put it into filecontent
> repeat for each word w in filecontent
> if "a" is in field "standardtext" then
> put ".- /" into field "morsetext"
> end if
> if "b" is in field "standardtext" then
> put "-... /" into field "morsetext"
> end if
> if "c" is in field "standardtext" then
> put "-.-. /" into field "morsetext"
> end if
> end repeat
> answer "There you go! Bitte Schön!"
> end if
> end mouseUp
>
> Thank You alot ...greets theo !!
I could give you a bunch of hints offlist and in german if you like?
Just drop a line... ;-)
Regards
Klaus Major
klaus at major-k.de
http://www.major-k.de
More information about the metacard
mailing list