What's new

Closed Morse code translator problem

Status
Not open for further replies.

Phrog

Forum Veteran
Elite
Joined
Jan 25, 2017
Posts
2,129
Reaction
1,379
Points
636
Guys paano to? Di ko kasi ma translate yung word to morse code. Kaya nung una ang daming dineclare na variable tapos ngayon may problem sa if then else, bawal daw kasi ang multiple condition sa if then else..
1.png 2.png 3.png 4.png 5.png 6.png 7.png 8.png
 

Attachments

If RichTextBox1.Text = "B" Or RichTextBox1.Text = "b" Then
lblresult.Text = B
ElseIf RichTextBox1.Text = "C" Or RichTextBox1.Text = "c" Then
lblresult.Text = C
...........................
........................... so on so forth
 
If RichTextBox1.Text = "B" Or RichTextBox1.Text = "b" Then
lblresult.Text = B
ElseIf RichTextBox1.Text = "C" Or RichTextBox1.Text = "c" Then
lblresult.Text = C
...........................
........................... so on so forth
Ayos naman po yung translating ng letters, ang problem ko lang ehh yung pag translate ng word to morse code, ex: Clark = -.-. .-.. .- .-. -.-
 
ilagay nyo po yung conditional statements sa loob ng loops sir at ok na yan
eto code kung gusto:
Spoiler contents are visible only to Established Members.

Edit: whoops bawal pala if-else? eto po sir array po gamit
Spoiler contents are visible only to Established Members.
 
Last edited:
ilagay nyo po yung conditional statements sa loob ng loops sir at ok na yan
eto code kung gusto:


Edit: whoops bawal pala if-else? eto po sir array po gamit
Thanks po sir, try ko po ito

Edit: Thanks po talaga sir, tapos na po ako gawa nyo. Natapos na yung program, utang ko po sa inyo yung grade ko sa project na to hahahaha
 
Last edited:
Status
Not open for further replies.
Back
Top