Algoritma menu Konversi

C.7. Algoritma menu Konversi

Langkah – langkah pembuatan menu Konversi adalah sebagai berikut :

1. Buat project baru pada Visual Basic 6.0 kemudian pilih Standard.exe

2. Tambahkan 2 buah control Timer dan 1 buah SSTab

3. Kemudian tambahkan ke Form, 4 buah Label, 7 buah CommandButton, 1 buah Image .

4. Selanjutnya implementasikan Source Code Berikut ini :

Dim cinch As Currency Dim cfeet As Currency Dim cyard As Currency Dim cmile As Currency Dim cmilli As Currency Dim ccenti As Currency Dim cmetre As Currency Dim ckilo As Currency Dim ccentig As Currency Dim cfaren As Currency Dim csecs As Currency Dim cmins As Currency Dim chours As Currency Dim cdays As Currency Dim cmonths As Currency Dim cyears As Currency Dim cgram As Currency Dim ckilos As Currency Dim ctonne As Currency Dim counce As Currency Dim cpound As Currency Dim cstone As Currency Dim cton As Currency Dim cmillil As Currency Dim cletre As Currency Dim cpint As Currency Dim cquart As Currency Dim cgallon As Currency Dim cscenti As Currency Dim csmetre As Currency Dim cskilo As Currency Dim cshectare As Currency Dim csinch As Currency Dim csfeet As Currency Dim csmile As Currency Dim csacre As Currency

Private Sub display() Inch.Text = cinch

Feet.Text = cfeet Yard.Text = cyard Mile.Text = cmile Milli.Text = cmilli Centi.Text = ccenti Metre.Text = cmetre Kilo.Text = ckilo

Centig.Text = ccentig Faren.Text = cfaren Secs.Text = csecs Mins.Text = cmins Hours.Text = chours Days.Text = cdays Months.Text = cmonths Years.Text = cyears Gram.Text = cgram Kilos.Text = ckilos Tonne.Text = ctonne Ounce.Text = counce Pound.Text = cpound Stone.Text = cstone Ton.Text = cton Millil.Text = cmillil Letre.Text = cletre Pint.Text = cpint Quart.Text = cquart Gallon.Text = cgallon Scenti.Text = cscenti SMetre.Text = csmetre SKilo.Text = cskilo SHectare.Text = cshectare SInch.Text = csinch Sfeet.Text = csfeet Smile.Text = csmile Sacre.Text = csacre End Sub

Private Sub conversioncenti() On Error GoTo error ccenti = Centi.Text cinch = ccenti * 10 / 25.4 cfeet = ccenti / 30.48 cyard = ccenti / 100 / 0.9144 cmile = ccenti / 100000 / 1.609 cmilli = ccenti * 10 cmetre = ccenti / 100 ckilo = ccenti / 100000 display Exit Sub error: Milli.Text = "0" Centi.Text = "0" Metre.Text = "0" Kilo.Text = "0"

Inch.Text = "0" Feet.Text = "0" Yard.Text = "0" Mile.Text = "0" End Sub

Private Sub Centi_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversioncenti End Select End Sub

Private Sub conversioncentig() On Error GoTo error ccentig = Centig.Text cfaren = ccentig * (9 / 5) + 32 display Exit Sub error: Faren.Text = "32" Centig.Text = "0" End Sub

Private Sub Centig_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversioncentig End Select End Sub

Private Sub conversionfaren() On Error GoTo error cfaren = Faren.Text ccentig = (cfaren - 32) * (5 / 9) display Exit Sub error: Faren.Text = "32" Centig.Text = "0" End Sub

Private Sub Faren_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversionfaren End Select

End Sub

Private Sub conversiondays() On Error GoTo error cdays = Days.Text csecs = cdays * 24 * 60 * 60 cmins = cdays * 24 * 60 chours = cdays * 24 cmonths = cdays / 365 * 12 cyears = cdays / 365 display Exit Sub error: Secs.Text = "0" Mins.Text = "0" Hours.Text = "0" Days.Text = "0" Months.Text = "0" Years.Text = "0" End Sub

Private Sub Days_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversiondays End Select End Sub

Private Sub conversionfeet() On Error GoTo error cfeet = Feet.Text cinch = cfeet * 12 cyard = cfeet / 3 cmile = cfeet / 3 / 1760 cmilli = cfeet * 30.48 * 10 ccenti = cfeet * 30.48 cmetre = cfeet * 30.48 / 100 ckilo = cfeet * 30.48 / 100000 display Exit Sub error: Milli.Text = "0" Centi.Text = "0" Metre.Text = "0" Kilo.Text = "0" Inch.Text = "0" Feet.Text = "0"

Yard.Text = "0" Mile.Text = "0" End Sub

Private Sub Feet_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversionfeet End Select End Sub

Private Sub conversioninch() On Error GoTo error cinch = Inch.Text cfeet = cinch / 12 cyard = cinch / 12 / 3 cmile = cinch / 12 / 3 / 1760 cmilli = cinch * 25.4 ccenti = cinch * 25.4 / 10 cmetre = cinch * 25.4 / 1000 ckilo = cinch * 25.4 / 1000000 display Exit Sub error: Milli.Text = "0" Centi.Text = "0" Metre.Text = "0" Kilo.Text = "0" Inch.Text = "0" Feet.Text = "0" Yard.Text = "0" Mile.Text = "0" End Sub

Private Sub conversiongram() On Error GoTo error cgram = Gram.Text ckilos = cgram / 1000 ctonne = cgram / 1000 / 1000 counce = cgram * 0.035 cpound = cgram * 0.035 / 16 cstone = cgram * 0.035 / 16 / 14 cton = cgram * 0.035 / 160 display Exit Sub error: Gram.Text = "0"

Kilos.Text = "0" Tonne.Text = "0" Ounce.Text = "0" Pound.Text = "0" Stone.Text = "0" Ton.Text = "0" End Sub

Private Sub conversiongallon() On Error GoTo error cgallon = Gallon.Text cmillil = cgallon * 4.546 * 1000 cletre = cgallon * 4.546 cpint = cgallon * 4 * 2 cquart = cgallon * 4 display Exit Sub error: Millil.Text = "0" Letre.Text = "0" Pint.Text = "0" Quart.Text = "0" Gallon.Text = "0" End Sub

Private Sub Gallon_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode

Case vbKeyReturn conversiongallon End Select End Sub

Private Sub Gram_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversiongram End Select End Sub

Private Sub Inch_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversioninch End Select End Sub

Private Sub conversionhours()

On Error GoTo error chours = Hours.Text csecs = chours * 60 * 60 cmins = chours * 60 cdays = chours / 24 cmonths = chours / 24 / 365 * 12 cyears = chours / 24 / 365 display Exit Sub error: Secs.Text = "0" Mins.Text = "0" Hours.Text = "0" Days.Text = "0" Months.Text = "0" Years.Text = "0" End Sub

Private Sub Hours_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversionhours End Select End Sub

Private Sub conversionkilo() On Error GoTo error

ckilo = Kilo.Text cinch = ckilo * 1000000 / 25.4 cfeet = ckilo * 100000 / 30.48 cyard = ckilo * 1000 / 0.9144 cmile = ckilo / 1.609 cmilli = ckilo * 1000000 ccenti = ckilo * 100000 cmetre = ckilo * 1000 display Exit Sub error: Milli.Text = "0" Centi.Text = "0" Metre.Text = "0" Kilo.Text = "0" Inch.Text = "0" Feet.Text = "0" Yard.Text = "0" Mile.Text = "0" End Sub

Private Sub Kilo_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversionkilo End Select End Sub

Private Sub conversionmetre() On Error GoTo error cmetre = Metre.Text cinch = cmetre * 1000 / 25.4 cfeet = cmetre * 100 / 30.48 cyard = cmetre / 0.9144 cmile = cmetre / 1000 / 1.609 cmilli = cmetre * 1000 ccenti = cmetre * 100 ckilo = cmetre / 1000 display Exit Sub error: Milli.Text = "0" Centi.Text = "0" Metre.Text = "0" Kilo.Text = "0" Inch.Text = "0" Feet.Text = "0" Yard.Text = "0" Mile.Text = "0" End Sub

Private Sub conversionkilos() On Error GoTo error ckilos = Kilos.Text cgram = ckilos * 1000 ctonne = ckilos / 1000 counce = ckilos * 1000 * 0.035 cpound = ckilos * 2.205 cstone = ckilos * 2.205 / 14 cton = ckilos / 1000 * 0.984 display Exit Sub error: Gram.Text = "0" Kilos.Text = "0" Tonne.Text = "0" Ounce.Text = "0"

Pound.Text = "0" Stone.Text = "0" Ton.Text = "0" End Sub

Private Sub Kilos_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversionkilos End Select End Sub

Private Sub conversionletre() On Error GoTo error cletre = Letre.Text cmillil = cletre * 1000 cpint = cletre * 1.76 cquart = cletre * 0.88 cgallon = cletre * 0.22 display Exit Sub error: Millil.Text = "0" Letre.Text = "0" Pint.Text = "0" Quart.Text = "0" Gallon.Text = "0" End Sub

Private Sub Letre_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversionletre End Select End Sub

Private Sub Metre_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversionmetre End Select End Sub

Private Sub conversionmile() On Error GoTo error cmile = Mile.Text cinch = cmile * 1760 * 12 * 3 Private Sub conversionmile() On Error GoTo error cmile = Mile.Text cinch = cmile * 1760 * 12 * 3

Private Sub Mile_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversionmile End Select End Sub

Private Sub conversionmilli() On Error GoTo error cmilli = Milli.Text cinch = cmilli / 25.4 cfeet = cmilli / 10 / 30.48 cyard = cmilli / 1000 / 0.9144 cmile = cmilli / 1000000 / 1.609 ccenti = cmilli / 10 cmetre = cmilli / 1000 ckilo = cmilli / 1000000 display Exit Sub error: Milli.Text = "0" Centi.Text = "0" Metre.Text = "0" Kilo.Text = "0" Inch.Text = "0" Feet.Text = "0" Yard.Text = "0" Mile.Text = "0"

End Sub

Private Sub Milli_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversionmilli End Select End Sub

Private Sub conversionyard() On Error GoTo error cyard = Yard.Text cinch = cyard * 12 * 3 cfeet = cyard * 3 cmile = cyard / 1760 cmilli = cyard * 0.9144 * 1000 ccenti = cyard * 0.9144 * 100 cmetre = cyard * 0.9144 ckilo = cyard * 0.9144 / 1000 display Exit Sub error: Milli.Text = "0" Centi.Text = "0" Metre.Text = "0" Kilo.Text = "0" Inch.Text = "0" Feet.Text = "0" Yard.Text = "0" Mile.Text = "0" End Sub Private Sub conversionounce() On Error GoTo error counce = Ounce.Text cpound = counce / 16 cstone = counce / 16 / 14 cton = counce / 16 / 14 / 160 cgram = counce * 28.349 ckilos = counce * 28.349 / 1000 ctonne = counce * 28.349 / 1000 / 1000 display Exit Sub error: Gram.Text = "0" Kilos.Text = "0" Tonne.Text = "0" Ounce.Text = "0"

Pound.Text = "0" Stone.Text = "0" Ton.Text = "0" End Sub

Private Sub conversionmillil() On Error GoTo error cmillil = Millil.Text cletre = cmillil / 1000 cpint = cmillil / 1000 * 1.76 cquart = Millil / 1000 * 0.88 cgallon = cmillil / 1000 * 0.22 display Exit Sub error: Millil.Text = "0" Letre.Text = "0" Pint.Text = "0" Quart.Text = "0" Gallon.Text = "0" End Sub

Private Sub Millil_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversionmillil End Select End Sub

Private Sub Ounce_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversionounce End Select End Sub

Private Sub conversionpound() On Error GoTo error cpound = Pound.Text counce = cpound * 16 cstone = cpound / 14 cton = cpound / 14 / 160 cgram = cpound * 0.454 * 1000 ckilos = cpound * 0.454 ctonne = cpound * 0.454 / 1000 display Exit Sub Private Sub conversionpound() On Error GoTo error cpound = Pound.Text counce = cpound * 16 cstone = cpound / 14 cton = cpound / 14 / 160 cgram = cpound * 0.454 * 1000 ckilos = cpound * 0.454 ctonne = cpound * 0.454 / 1000 display Exit Sub

Private Sub conversionpint() On Error GoTo error cpint = Pint.Text cmillil = cpint * 0.568 * 1000 cletre = cpint * 0.568 cquart = cpint / 2 cgallon = cpint / 2 / 4 display Exit Sub error: Millil.Text = "0" Letre.Text = "0" Pint.Text = "0" Quart.Text = "0" Gallon.Text = "0" End Sub

Private Sub Pint_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversionpint End Select End Sub

Private Sub Pound_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversionpound End Select End Sub

Private Sub conversionquart() On Error GoTo error cquart = Quart.Text cmillil = cquart * 1.136 * 1000 cletre = cquart * 1.136 cpint = cquart * 2 Private Sub conversionquart() On Error GoTo error cquart = Quart.Text cmillil = cquart * 1.136 * 1000 cletre = cquart * 1.136 cpint = cquart * 2

Private Sub Quart_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversionquart End Select End Sub

Private Sub conversionsacre() On Error GoTo error csacre = Sacre.Text cscenti = csacre * 6272640 * 6452 csmetre = csacre * 6272640 * 6452 / 10000 cshectare = csacre * 0.405 cskilo = csacre * 0.405 / 10 csinch = csacre * 6272640 csfeet = csacre * 6272640 / 144 csmile = csacre / 64 display Exit Sub error: Scenti.Text = "0" SMetre.Text = "0" SKilo.Text = "0" SHectare.Text = "0" SInch.Text = "0" Sfeet.Text = "0" Smile.Text = "0" Sacre.Text = "0" End Sub

Private Sub Sacre_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversionsacre End Select End Sub

Private Sub conversionscenti() On Error GoTo error cscenti = Scenti.Text csmetre = cscenti / 10000 cshectare = cscenti / 100000000 cskilo = cscenti / 10000000000# csinch = cscenti * 0.155 csfeet = cscenti / 10000 * 1.196 * 9 csacre = cscenti / 100000000 * 2.471 csmile = cscenti / 10000000000# * 0.386 display Exit Sub error: Scenti.Text = "0" SMetre.Text = "0" SKilo.Text = "0" SHectare.Text = "0" SInch.Text = "0" Sfeet.Text = "0" Smile.Text = "0" Sacre.Text = "0" End Sub

Private Sub Scenti_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversionscenti End Select End Sub

Private Sub conversionsfeet() On Error GoTo error csfeet = Sfeet.Text cscenti = csfeet * 144 * 6.452 csmetre = csfeet * 144 * 6.452 / 10000 cshectare = csfeet * 144 * 6.452 / 100000000 cskilo = csfeet * 144 * 6.452 / 10000000000# csinch = csfeet * 144 csacre = csfeet / 43560 csmile = csfeet / 43560 / 64 display Exit Sub error: Scenti.Text = "0" SMetre.Text = "0" SKilo.Text = "0"

SHectare.Text = "0" SInch.Text = "0" Sfeet.Text = "0" Smile.Text = "0" Sacre.Text = "0" End Sub

Private Sub Sfeet_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversionsfeet End Select End Sub

Private Sub conversionshectare() On Error GoTo error cshectare = SHectare.Text cscenti = cshectare * 1000000000 csmetre = cshectare * 100000 cskilo = cshectare / 10 csinch = cshectare * 1000000000 * 0.155 csfeet = cshectare * 100000 * 1.196 * 9 csmile = cshectare / 10 * 0.386 csacre = cshectare * 2.471 display Exit Sub error: Scenti.Text = "0" SMetre.Text = "0" SKilo.Text = "0" SHectare.Text = "0" SInch.Text = "0" Sfeet.Text = "0" Smile.Text = "0" Sacre.Text = "0" End Sub

Private Sub SHectare_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversionshectare End Select End Sub

Private Sub conversionsinch() On Error GoTo error csinch = SInch.Text Private Sub conversionsinch() On Error GoTo error csinch = SInch.Text

Private Sub SInch_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversionsinch End Select End Sub

Private Sub conversionskilo() On Error GoTo error cskilo = SKilo.Text cscenti = cskilo * 10000000000# csmetre = cskilo * 1000000 cshectare = cskilo * 10 csinch = cskilo * 10000000000# * 0.155 csfeet = cskilo * 1000000 * 1.196 * 9 csmile = cskilo * 0.386 csacre = cskilo * 10 * 2.471 display Exit Sub error: Scenti.Text = "0" SMetre.Text = "0" SKilo.Text = "0" SHectare.Text = "0" SInch.Text = "0" Sfeet.Text = "0" Smile.Text = "0"

Sacre.Text = "0" End Sub

Private Sub SKilo_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversionskilo End Select End Sub

Private Sub conversionsmetre() On Error GoTo error csmetre = SMetre.Text cscenti = csmetre * 10000 cshectare = csmetre / 100000 cskilo = csmetre / 1000000 csinch = csmetre * 10000 * 0.155 csfeet = csmetre * 1.196 * 9 csmile = csmetre / 1000000 * 0.386 csacre = csmetre / 100000 * 2.471 display Exit Sub error: Scenti.Text = "0" SMetre.Text = "0" SKilo.Text = "0" SHectare.Text = "0" SInch.Text = "0" Sfeet.Text = "0" Smile.Text = "0" Sacre.Text = "0" End Sub

Private Sub SMetre_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversionsmetre End Select End Sub

Private Sub conversionsmile() On Error GoTo error csmile = Smile.Text cscenti = csmile * 2.59 * 10000000000# csmetre = csmile * 2.59 * 1000000 cshectare = csmile * 2.59 * 10 cskilo = csmile * 2.59 Private Sub conversionsmile() On Error GoTo error csmile = Smile.Text cscenti = csmile * 2.59 * 10000000000# csmetre = csmile * 2.59 * 1000000 cshectare = csmile * 2.59 * 10 cskilo = csmile * 2.59

Private Sub Smile_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversionsmile End Select End Sub

Private Sub conversionstone() On Error GoTo error cstone = Stone.Text

counce = cstone * 14 * 16 cpound = cstone * 14 cton = cstone / 160 cgram = cstone * 14 * 16 * 28.349 ckilos = cstone * 14 * 454 ctonne = cstone / 160 * 1.016 display Exit Sub error: Gram.Text = "0" Kilos.Text = "0" Tonne.Text = "0" Ounce.Text = "0" Pound.Text = "0" Stone.Text = "0" Ton.Text = "0" End Sub

Private Sub Stone_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn Private Sub Stone_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn

Private Sub conversionton() On Error GoTo error cton = Ton.Text counce = cton * 160 * 14 * 16 cpound = cton * 160 * 14 cstone = cton * 160 cgram = cton * 1.016 * 1000 * 1000 ckilos = cton * 1.016 * 1000 ctonne = cton * 1.016 display Exit Sub error: Gram.Text = "0" Kilos.Text = "0" Tonne.Text = "0" Ounce.Text = "0" Pound.Text = "0" Stone.Text = "0" Ton.Text = "0" End Sub

Private Sub Ton_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode

Case vbKeyReturn conversionton End Select End Sub

Private Sub conversiontonne() On Error GoTo error ctonne = Tonne.Text counce = ctonne * 1000 * 1000 * 0.035 cpound = ctonne * 1000 * 2.205 cstone = ctonne * 1000 * 2.205 / 14 cton = ctonne * 0.984 cgram = ctonne * 1000 * 1000 ckilos = ctonne * 1000 display Exit Sub error: Gram.Text = "0" Kilos.Text = "0" Tonne.Text = "0"

Ounce.Text = "0" Pound.Text = "0" Stone.Text = "0" Ton.Text = "0" End Sub

Private Sub Tonne_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversiontonne End Select End Sub

Private Sub Yard_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversionyard End Select End Sub

Private Sub conversionmins() On Error GoTo error cmins = Mins.Text csecs = cmins * 60 chours = cmins / 60 cdays = cmins / 60 / 24 cmonths = cmins / 60 / 24 / 365 * 12 cyears = cmins / 60 / 24 / 365 display Exit Sub error: Secs.Text = "0" Mins.Text = "0" Hours.Text = "0" Days.Text = "0" Months.Text = "0" Years.Text = "0" End Sub

Private Sub Mins_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversionmins End Select End Sub

Private Sub conversionmonths()

On Error GoTo error cmonths = Months.Text csecs = cmonths * 365 / 12 * 24 * 60 * 60 cmins = cmonths * 365 / 12 * 24 * 60 chours = cmonths * 365 / 12 * 24 cdays = cmonths * 365 / 12 cyears = cmonths / 12 display Exit Sub error: Secs.Text = "0" Mins.Text = "0" Hours.Text = "0" Days.Text = "0" Months.Text = "0" Years.Text = "0" End Sub

Private Sub Months_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn conversionmonths End Select End Sub

Private Sub conversionsecs() On Error GoTo error

csecs = Secs.Text cmins = csecs / 60 chours = csecs / 60 / 60 cdays = csecs / 60 / 60 / 24 cmonths = csecs / 60 / 60 / 24 / 365 * 12 cyears = csecs / 60 / 60 / 24 / 365 display Exit Sub error: Secs.Text = "0" Mins.Text = "0" Hours.Text = "0" Days.Text = "0" Months.Text = "0" Years.Text = "0" End Sub

Private Sub Secs_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn Private Sub Secs_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn

Private Sub conversionyears() On Error GoTo error cyears = Years.Text csecs = cyears * 365 * 24 * 60 * 60 cmins = cyears * 365 * 24 * 60 chours = cyears * 365 * 24 cdays = cyears * 365 cmonths = cyears * 12 display Exit Sub error: Secs.Text = "0" Mins.Text = "0" Hours.Text = "0" Days.Text = "0" Months.Text = "0" Years.Text = "0" End Sub

Private Sub Years_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeyReturn

conversionyears End Select End Sub

Dokumen yang terkait

ANALISIS KOMPARATIF PENDAPATAN DAN EFISIENSI ANTARA BERAS POLES MEDIUM DENGAN BERAS POLES SUPER DI UD. PUTRA TEMU REJEKI (Studi Kasus di Desa Belung Kecamatan Poncokusumo Kabupaten Malang)

23 307 16

FREKUENSI KEMUNCULAN TOKOH KARAKTER ANTAGONIS DAN PROTAGONIS PADA SINETRON (Analisis Isi Pada Sinetron Munajah Cinta di RCTI dan Sinetron Cinta Fitri di SCTV)

27 310 2

MANAJEMEN PEMROGRAMAN PADA STASIUN RADIO SWASTA (Studi Deskriptif Program Acara Garus di Radio VIS FM Banyuwangi)

29 282 2

APRESIASI IBU RUMAH TANGGA TERHADAP TAYANGAN CERIWIS DI TRANS TV (Studi Pada Ibu Rumah Tangga RW 6 Kelurahan Lemah Putro Sidoarjo)

8 209 2

PENYESUAIAN SOSIAL SISWA REGULER DENGAN ADANYA ANAK BERKEBUTUHAN KHUSUS DI SD INKLUSI GUGUS 4 SUMBERSARI MALANG

64 523 26

ANALISIS PROSPEKTIF SEBAGAI ALAT PERENCANAAN LABA PADA PT MUSTIKA RATU Tbk

273 1263 22

PENERIMAAN ATLET SILAT TENTANG ADEGAN PENCAK SILAT INDONESIA PADA FILM THE RAID REDEMPTION (STUDI RESEPSI PADA IKATAN PENCAK SILAT INDONESIA MALANG)

43 322 21

KONSTRUKSI MEDIA TENTANG KETERLIBATAN POLITISI PARTAI DEMOKRAT ANAS URBANINGRUM PADA KASUS KORUPSI PROYEK PEMBANGUNAN KOMPLEK OLAHRAGA DI BUKIT HAMBALANG (Analisis Wacana Koran Harian Pagi Surya edisi 9-12, 16, 18 dan 23 Februari 2013 )

64 565 20

PEMAKNAAN BERITA PERKEMBANGAN KOMODITI BERJANGKA PADA PROGRAM ACARA KABAR PASAR DI TV ONE (Analisis Resepsi Pada Karyawan PT Victory International Futures Malang)

18 209 45

STRATEGI KOMUNIKASI POLITIK PARTAI POLITIK PADA PEMILIHAN KEPALA DAERAH TAHUN 2012 DI KOTA BATU (Studi Kasus Tim Pemenangan Pemilu Eddy Rumpoko-Punjul Santoso)

119 459 25