I will periodically post coding challenges to be solved with LiveCode.
Solving problems is a great way to improve your coding skills.
Vote for the best answer.
please paste plain text only.
please add [code] at the beginning of your code, and [/code] at the end to facilitate syntax colorizing.
if you see that ‘AndyP edited….’ your answer, this will be only for formatting.. I will not be changing your answer.
Given two fields named Input and Output:
1.Typing Text or Morse Code into field Input should result in the the corresponding result in field Output.
Text in field Input = Morse Code in field Output.
Morse Code in field Input = Text in field Output.
2.The conversion should take place as each letter or entity is typed into field Input.
3.Mixing Text and Morse Code in field Input is NOT permitted and your solution should allow input to field Input to be ignored if mixing is detected.
Special consideration needs to be given to periods (.), hyphens (-) and spaces ( ).
International Morse Code table below as reference.