🔒 Closed Morse code translator problem

Status
Not open for further replies.

Phrog

Forum Veteran
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
 
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:


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
 
Status
Not open for further replies.

About this Thread

  • 9
    Replies
  • 1K
    Views
  • 5
    Participants
Last reply from:
Phrog

Online now

Members online
869
Guests online
770
Total visitors
1,639

Forum statistics

Threads
2,275,128
Posts
28,960,856
Members
1,232,632
Latest member
kumyoung_101
Back
Top