Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27569

MorseCode Converter

$
0
0
Hello i need some help with this morsecode Converter for a school project.

The program should both be able to translate from normal text to morse and the other way around.
And my teacher want us to do it the same way as him.
Also it should be able to make beep sounds similar to the morsecode.

I know that he wants to dim the letters this way.
Code:

Dim A As String = "*-"
    Dim B As String = "-***"
    Dim C As String = "-*-*"
    Dim D As String = "-**"
    Dim E As String = "*"
    Dim F As String = "**-*"
    Dim G As String = "--*"
    Dim H As String = "****"
    Dim I As String = "**"
    Dim J As String = "*---"
    Dim K As String = "-*-"
    Dim L As String = "*-**"
    Dim M As String = "--"
    Dim N As String = "-*"
    Dim O As String = "---"
    Dim P As String = "*--*"
    Dim Q As String = "--*-"
    Dim R As String = "*-*"
    Dim S As String = "***"
    Dim T As String = "-"
    Dim U As String = "**-"
    Dim V As String = "***-"
    Dim W As String = "*--"
    Dim X As String = "-**-"
    Dim Y As String = "-*--"
    Dim Z As String = "--**"
    Dim Æ As String = "*-*-"
    Dim Ø As String = "---*"
    Dim Å As String = "*--*-"

Also he showed us this tutorial we should use to split strings in some way.
http://www.youtube.com/watch?v=Ao0pq2cDa30

And i took this picture of how he use the Case function.

Hope someone can help me figure out how the program works for him.

Viewing all articles
Browse latest Browse all 27569

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>