🔒 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

Trending Topics

Online now

Members online
1,264
Guests online
2,537
Total visitors
3,801

Forum statistics

Threads
2,331,348
Posts
29,257,687
Members
1,149,570
Latest member
damnitsT
Back
Top