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
[EMAIL PROTECTED]
http://www.major-k.de

_______________________________________________
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard

Reply via email to