4 Replies - 223 Views - Last Post: 05 September 2012 - 11:21 AM Rate Topic: -----

#1 IntegraZ  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 05-September 12

Linking Translator to DataBase

Posted 05 September 2012 - 05:55 AM

hello guys, i'm making a English to Arabic translator without a database here is an short header of my code

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        If TBx1.Text = "good" Then
            TBx2.Text = "جيد"
        ElseIf TBx1.Text = "nice" Then
            TBx2.Text = "جميل"
        ElseIf TBx1.Text = "abbreviation" Then
            TBx2.Text = " اختصار"
        ElseIf TBx1.Text = "ability	" Then
            TBx2.Text = "قدرة"
        ElseIf TBx1.Text = "ablution" Then
            TBx2.Text = "وضوء"
        ElseIf TBx1.Text = "accident" Then
            TBx2.Text = "حادث"
        End If
    End Sub
End Class

you notice that i need to write more than 3000 line to make the program much better I'm wondering if i linked the program to a specific database will it save more lines i mean i don't have to write the rest 3000 lines ?

Is This A Good Question/Topic? 0
  • +

Replies To: Linking Translator to DataBase

#2 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 6447
  • View blog
  • Posts: 23,462
  • Joined: 12-June 08

Re: Linking Translator to DataBase

Posted 05 September 2012 - 06:55 AM

Yeah.. using a database removes the need to write a three-thousand line if/switch statement.
Was This Post Helpful? 0
  • +
  • -

#3 IntegraZ  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 05-September 12

Re: Linking Translator to DataBase

Posted 05 September 2012 - 07:48 AM

is there any tutorial for that?
Was This Post Helpful? 0
  • +
  • -

#4 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 6447
  • View blog
  • Posts: 23,462
  • Joined: 12-June 08

Re: Linking Translator to DataBase

Posted 05 September 2012 - 08:00 AM

What? A tutorial on database interactions? Yeah.. plenty. A tutorial on your narrow and specific project? I don't know.

OleDb Basics in VB.Net Rate Topic

A Really Simple Database Create a Database using Access & VB.net Express 2008
Was This Post Helpful? 0
  • +
  • -

#5 IntegraZ  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 05-September 12

Re: Linking Translator to DataBase

Posted 05 September 2012 - 11:21 AM

thanks For Reply
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1