L A M P I R A N. Universitas Sumatera Utara

Size: px
Start display at page:

Download "L A M P I R A N. Universitas Sumatera Utara"

Transcription

1 L A M P I R A N

2 Form 1 '====================================================== 'SUHU FLUIDA : ' Suhu 10 C Const a1 = Const B1 = Const C1 = ' Suhu 20 C Const a2 = Const B2 = Const C2 = ' Suhu 30 C Const a3 = Const B3 = Const C3 = ' Suhu 40 C Const a4 = Const B4 = Const C4 = ' Suhu 50 C Const a5 = Const B5 = Const C5 = ' Suhu 60 C Const a6 = Const B6 = 0.521

3 Const C6 = ' '==================================================== ' Private Function AturSuhu10C() nilai = HScroll5.Value Text9.Text = ((((nilai - 10) / 10) * (a2 - a1)) + a1) * 1000 End Function Private Function AturSuhu20C() nilai = HScroll5.Value Text9.Text = ((((nilai - 20) / 10) * (a3 - a2)) + a2) * 1000 Text10.Text = (((nilai - 20) / 10) * (B3 - B2)) + B2 Text11.Text = (((nilai - 20) / 10) * (C3 - C2)) + C2 End Function Private Function AturSuhu30C() nilai = HScroll5.Value Text9.Text = ((((nilai - 30) / 10) * (a4 - a3)) + a3) * 1000 Text10.Text = (((nilai - 30) / 10) * (B4 - B3)) + B3 Text11.Text = (((nilai - 30) / 10) * (C4 - C3)) + C3 End Function Private Function AturSuhu40C() nilai = HScroll5.Value Text9.Text = ((((nilai - 40) / 10) * (a5 - a4)) + a4) * 1000 Text10.Text = (((nilai - 40) / 10) * (B5 - B4)) + B4

4 Text11.Text = (((nilai - 40) / 10) * (C5 - C4)) + C4 End Function Private Function AturSuhu50C() nilai = HScroll5.Value Text9.Text = ((((nilai - 30) / 10) * (a6 - a5)) + a5) * 1000 Text10.Text = (((nilai - 30) / 10) * (B6 - B5)) + B5 Text11.Text = (((nilai - 30) / 10) * (C6 - C5)) + C5 End Function Private Sub Combo1_Change() Dim i As Integer i = Combo1.ListIndex Select Case i Case 0 HScroll6.Enabled = False Text7.Text = 130 Case 1 HScroll6.Enabled = False Text7.Text = 100 Case 2 HScroll6.Enabled = True HScroll6.Max = 130 HScroll6.Min = 120 HScroll6.LargeChange = 1 HScroll6.SmallChange = 1 Text7.Text = CStr(HScroll6.Value) Case 3

5 HScroll6.Enabled = True HScroll6.Max = 100 HScroll6.Min = 80 HScroll6.LargeChange = 1 HScroll6.SmallChange = 1 Text7.Text = CStr(HScroll6.Value) Case 4 HScroll6.Enabled = True HScroll6.Max = 140 HScroll6.Min = 130 HScroll6.LargeChange = 1 HScroll6.SmallChange = 1 Text7.Text = CStr(HScroll6.Value) Case 5 HScroll6.Enabled = False Text7.Text = 140 Case Else HScroll6.Enabled = False Text7.Text = 130 End Select Private Sub Combo1_Click() Dim i As Integer i = Combo1.ListIndex Combo1_Change Private Sub Combo2_Change()

6 Dim i As Integer i = Combo2.ListIndex Select Case i Case 0 HScroll7.Enabled = True HScroll7.Max = 930 HScroll7.Min = 900 HScroll7.LargeChange = 1 HScroll7.SmallChange = 1 Text8.Text = CStr(HScroll7.Value / 1000) Case 1 HScroll7.Enabled = False Text8.Text = 0.95 Case Else HScroll7.Enabled = True HScroll7.Max = 930 HScroll7.Min = 900 HScroll7.LargeChange = 1 HScroll7.SmallChange = 1 Text8.Text = CStr(HScroll7.Value / 1000) End Select Private Sub Combo2_Click() Combo2_Change Private Sub Combo3_Change() Dim i As Integer

7 Select Case i Case 0 HScroll9.Enabled = True HScroll9.Max = 35 HScroll9.Min = 25 HScroll9.LargeChange = 1 HScroll9.SmallChange = 1 Text13.Text = CStr(HScroll9.Value) HScroll10.Enabled = True HScroll10.Max = 10 HScroll10.Min = 2 HScroll10.LargeChange = 1 HScroll10.SmallChange = 1 Text14.Text = CStr(HScroll10.Value) Case 1 HScroll9.Enabled = True HScroll9.Max = 60 HScroll9.Min = 35 HScroll9.LargeChange = 1 HScroll9.SmallChange = 1 Text13.Text = CStr(HScroll9.Value) HScroll10.Enabled = True HScroll10.Max = 6 HScroll10.Min = 3 HScroll10.LargeChange = 1 HScroll10.SmallChange = 1 Text14.Text = CStr(HScroll10.Value)

8 Case 2 HScroll9.Enabled = True HScroll9.Max = 70 HScroll9.Min = 60 HScroll9.LargeChange = 1 HScroll9.SmallChange = 1 Text13.Text = CStr(HScroll9.Value) HScroll10.Enabled = True HScroll10.Max = 6 HScroll10.Min = 3 HScroll10.LargeChange = 1 HScroll10.SmallChange = 1 Text14.Text = CStr(HScroll10.Value) Case 3 HScroll9.Enabled = True HScroll9.Max = 80 HScroll9.Min = 70 HScroll9.LargeChange = 1 HScroll9.SmallChange = 1 Text13.Text = CStr(HScroll9.Value) HScroll10.Enabled = True HScroll10.Max = 6 HScroll10.Min = 3 HScroll10.LargeChange = 1 HScroll10.SmallChange = 1 Text14.Text = CStr(HScroll10.Value) Case Else HScroll9.Enabled = True

9 HScroll9.Max = 35 HScroll9.Min = 25 HScroll9.LargeChange = 1 HScroll9.SmallChange = 1 Text13.Text = CStr(HScroll9.Value) HScroll10.Enabled = True HScroll10.Max = 10 HScroll10.Min = 2 HScroll10.LargeChange = 1 HScroll10.SmallChange = 1 Text14.Text = CStr(HScroll10.Value) End Select Private Sub Combo3_Click() Combo3_Change Private Sub Command1_Click() SSTab1.Tab = 2 SSTab3.Tab = 0 Private Sub Command4_Click() frmpixelboard.show RichTextBox7.LoadFile App.Path & "\BIODATA.rtf" Private Sub Command5_Click() Unload frmpixelboard RichTextBox7.TextRTF = ""

10 Private Sub Command6_Click(Index As Integer) SSTab1.Tab = 0 Private Sub Form_Load() Refresh SSTab1.Tab = 0 SSTab3.Tab = 0 RichTextBox4.LoadFile App.Path & "\Isap.rtf" HScroll1.Value = 18 HScroll2.Value = 20 HScroll3.Value = 30 HScroll4.Value = 20 HScroll5.Value = 25 HScroll9.Value = Val(HScroll9.Max) - 10 HScroll10.Value = Val(HScroll10.Max) HScroll11.Value = 15 HScroll12.Value = 20 Text9.Text = * 1000 Text10.Text = Text11.Text = Private Sub Form_Unload(Cancel As Integer) End Private Sub HScroll1_Change()

11 Text1.Text = CStr(HScroll1.Value) Text3.Text = CStr(Round(HScroll1.Value + (HScroll2.Value / 10), 2)) Private Sub HScroll1_Scroll() HScroll1_Change Private Sub HScroll10_Change() Combo3_Change Private Sub HScroll11_Change() Text17.Text = HScroll11.Value Private Sub HScroll11_Scroll() HScroll11_Change Private Sub HScroll12_Change() Text18.Text = HScroll12.Value Private Sub HScroll12_Scroll() HScroll12_Change Private Sub HScroll2_Change() Text2.Text = CStr(HScroll2.Value / 10) Text3.Text = CStr(HScroll1.Value + (HScroll2.Value / 10))

12 Private Sub HScroll2_Scroll() HScroll2_Change Private Sub HScroll3_Change() Text4.Text = CStr(Round(HScroll3.Value / 3600, 4)) Private Sub HScroll3_Scroll() HScroll3_Change Private Sub HScroll4_Change() Text5.Text = CStr(HScroll4.Value / 10) Private Sub HScroll4_Scroll() HScroll4_Change Private Sub HScroll5_Change() Text6.Text = CStr(HScroll5.Value) Suhu = HScroll5.Value Select Case Suhu Case 10 Text9.Text = * 1000 Text10.Text = Text11.Text = Text6.Text = HScroll5.Value Case 11 To 19

13 AturSuhu10C Text6.Text = HScroll5.Value Case 20 Text9.Text = * 1000 Text10.Text = Text11.Text = Text6.Text = HScroll5.Value Case 21 To 29 AturSuhu20C Text6.Text = HScroll5.Value Case 30 Text9.Text = * 1000 Text10.Text = Text11.Text = Text6.Text = HScroll5.Value Case 31 To 39 AturSuhu30C Text6.Text = HScroll5.Value Case 40 Text9.Text = * 1000 Text10.Text = Text11.Text = Text6.Text = HScroll5.Value Case 41 To 49 AturSuhu40C Text6.Text = HScroll5.Value Case 50 Text9.Text = * 1000 Text10.Text = Text11.Text = Text6.Text = HScroll5.Value Case Else Text9.Text = * 1000

14 Text10.Text = Text11.Text = Text6.Text = HScroll5.Value End Select Private Sub HScroll5_Scroll() HScroll5_Change Private Sub HScroll6_Change() Combo1_Change Private Sub HScroll6_Scroll() HScroll6_Change Private Sub HScroll7_Change() Combo2_Change Private Sub HScroll8_Change() Text12.Text = HScroll8.Value / 100 Private Sub HScroll8_Scroll() HScroll8_Change Private Sub HScroll9_Change() Combo3_Change

15 Private Sub Image2_Click() Form2.Show Form1.Hide Private Sub Image3_Click() End Private Sub Timer1_Timer() Dim i As Date i = Now If Label21(0).Caption <> CStr(Time) And Label21(1).Caption <> CStr(Time) Then Label21(0).Caption = Year(i) Label21(1).Caption = Time End If Form 2 '====================================================== 'Assumsi-assumsi Algoritma Simulasi :

16 '====================================================== Const phi = 22 / 7 'Phi Const Patm = 1 'Tek. atmosfer (atm) Const Grv = 9.81 'Gravitasi bumi (m/s^2) Const Nqmin = 10 'Putaran spesifik min Const wo = 1450 * / 30 'Kec. Sudut (rad/s) Const Ne = 0.78 'Effisiensi Pompa Const nh = 0.9 'Effisiensi Hidrolik --> diperoleh dari Nqmin Const Nmtr = 1450 'Putaran motor induksi (1/min) Const Ta1 = 20 'Teg. Izin Max pada Pompa 1 tingkat yg ringan (N/mm) Const k = 0.78 'Faktor penyusutan kerja Const kav = 'Koef. kavitasi '===================================================== Private Sub Command1_Click() Static a1, a2, a3, a4, a5, a6, a7, a8 As Single Static Qs, Y, Pp, Ps, nq, Dminp, Dn, Ds As Single Timer1.Enabled = True Frame1.Visible = True With Form1 a1 =.Text3.Text 'Head Total (m) a2 = Round(.HScroll3.Value / 3600, 4) 'Kapasitas (m^3/s) a3 =.HScroll4.Value / 10 'kecepatan Fluida Masuk (Co) (m/s) a4 =.HScroll9.Value 'U2 (m/s) a5 =.HScroll10.Value 's (mm)

17 a6 =.HScroll11.Value 'Alpha2 a7 =.HScroll12.Value 'Betha2 a8 =.Text9.Text 'Massa Jenis Fluida (kg/m^3) pu =.Text11 'tek. uap jenuh (kgf/cm^2) 'Kapasitas Slip (m^3/s) Qs = 1.05 * a2 'Daya Spesifik {(m/s)^2} Y = Grv * a1 'Tek. Statis {N/m} Ps = Round(Y * a8 / , 2) 'Daya Pompa {kw} Pp = ((Grv * a1 * a8 * a2) / (1000 * Ne)) 'Putaran Spesifik (1/min) nq = Fix(1450 * ((a2 ^ 0.5) / (a1 ^ 0.75))) + 1 'Torsi (N/mm) Trs = ((Pp / wo) * 1000) 'Dia.min Poros (mm) Dpmin = ((Trs / (0.2 * Ta1)) ^ (1 / 3)) 'Dia. Leher Poros (mm) Dn = 1.3 * Dminp 'Dia. Isap (mm) Ds = Sqr(((4 / phi) * (Qs / a3)) + (Dn ^ 2))

18 'U1 (m/s) U1 = (Ds * phi * 1450) 'Kec. Fluida masuk impeler (m/s) C1 = 1.15 * a3 C2m = C1 'Lebar Impeler (mm) bl1 = (Qs / (Ds * phi * C1)) * 1000 'Sudut Betha1 B1 = Round(Atn(C1 / U1), 0) * (180 / phi) 'Diameter Impeler Luar (mm) D2 = (60 * a4 * 1000 * (2 / 6.3)) / (phi * 1450) 'Jmlh. Sudu (Z) Z = 6.5 * ((D2 + Ds) / (D2 - Ds)) * Sin(((B1 + a7) * phi / 180) / 2) 'Jarak Pembagian Sudu (mm) tz = Fix(Ds * phi / Z) + 1 'C2u

19 C2u = (9.81 * a1) / (nh * a4 * k) 'C2 (m/s) C2 = Sqr((C2u ^ 2) + (C2m ^ 2)) 'bl2 (mm) bl2 = (Qs * 1.05 * 1000) / (D2 * phi * C2m) 'w1 (m/s) w1 = Sqr((C1 ^ 2) + ((U1 / 100) ^ 2)) 'w2 (m/s) w2 = Sqr((C2m ^ 2) + ((a4 - C2u) ^ 2)) 'Kerugian Celah pd Casing Ql = * a2 'Gaya Geser Axial (N) Faxs = (3.65 * nq * a1 * ((D2 / 1000) ^ 2) * a8) / 100 Text1.Text = a1 Text2.Text = a2 Text3.Text =.HScroll5.Value Text4.Text = 1450 Text5.Text = a8 Text6.Text = a4

20 Text7.Text = a5 Text8.Text = Round(a3, 1) Text9.Text = a1 * 9.81 Text10.Text = a6 Text11.Text = Ps X1 = Text11.Text 'Ps Text12.Text = Round((X1 * a2 * 100) / (Ne), 2) X2 = Text12.Text 'Pp (kw) Text13.Text = nq Text14.Text = Fix(Trs) * Text15.Text = Fix(((((X2 / wo) * 1000) / (0.2 * Ta1)) ^ (1 / 3)) * 10) X3 = Text15.Text 'Dmin Poros (mm) Text16.Text = Fix(1.3 * X3 / 10) * 10 X4 = Val(Text16.Text) 'Dn (mm)

21 X5 = 4 / phi Text17.Text = Fix((((X5 * (Qs / a3)) + ((X4 / ) ^ 2)) ^ 0.5) * 1000) X11 = Text17.Text 'Diameter Isap = D1 (mm) Text18.Text = Round(U1 / 100, 1) Text19.Text = C1 X6 = Round(Text19.Text, 2) 'Kecepatan Absolut Fluida (m/s) Text20.Text = C2m Text21.Text = Round(bl1, 0) X7 = Text21.Text 'Lebar Roda 1 Text22.Text = Fix(Atn(X6 / X7) * (180 / phi)) * 6 X8 = Text22.Text 'Sudut Betha1 Text23.Text = Round(D2, 0)

22 Text24.Text = Fix(6.5 * ((D2 + Ds) / (D2 - Ds)) * Sin(((X8 + X9) * phi / 180) / 2)) + 6 X10 = Text24.Text 'Z =Jumlah Sudu (buah) Text25.Text = Fix(X11 * phi / X10) Text26.Text = Round(C2u, 1) Text27.Text = Round(C2, 1) Text30.Text = Fix(bl2 * 1000) Text28.Text = Round(w1, 1) Text29.Text = Round(w2, 1) Text31.Text = Ql Text32.Text = Fix(Faxs) Text33.Text = a7 X9 = Text33.Text 'Sudut Betha2 Text34.Text = "90" Text35.Text = Form1.HScroll2.Value / 10 'Hs (m) Text36.Text = Form1.HScroll1.Value 'Hd Y1 = Form1.HScroll1.Value + (Form1.HScroll2.Value / 10) Y2 = Form1.HScroll1.Value - (Form1.HScroll2.Value / 10)

23 Effi = Text37.Text Text37.Text = Round((Y2 / Y1) * 85, 1) 'Effisiensi (%) pui = pu * 25 / Text38.Text = Round(((1 - pui) / (a8 * 9.81)) - (Y2 - Y1) - 1.6, 2) 'NPSH_a (m) Y3 = Text38.Text Text39.Text = Round(Y3 * , 2) 'NPSH_r (m) Y4 = Text12.Text Text40.Text = Round(Y4 * 1.15, 2) 'Daya Air (kw) Y5 = Text37.Text / 100 Y6 = Text12.Text Text41.Text = Round(Y5 * Y6, 2) 'Daya Motor (kw) End With '====================================================== ====

24 Private Sub Form_Unload(Cancel As Integer) Form1.Show Frame1.Visible = False Unload Me Private Sub Image1_Click() Form3.Show Me.Hide 'Bagian Masuk : Form3.Text3 = Round(Form2.Text19, 1) Form3.Text4 = Form2.Text18 Form3.Text5 = Form2.Text28 Form3.Text6 = Form2.Text22 'C1 'U1 'W1 'Betha1 'Bagian Tekan : Form3.Text7 = Form2.Text27 Form3.Text8 = Form2.Text20 Form3.Text9 = Form2.Text26 Form3.Text10 = Form2.Text6 Form3.Text11 = Form2.Text29 Form3.Text12 = Form2.Text33 Form3.Text13 = Form2.Text10 'C2 'C2m 'C2u 'U2 'W2 'Alpha2 'Betha2 'Bagian Masuk : Form7.Text1 = Round(Form2.Text19, 1) Form7.Text2 = Form2.Text18 Form7.Text3 = Form2.Text28 Form7.Text4 = "90" Form7.Text5 = Form2.Text22 'C1 'U1 'W1 'W1 'Betha1

25 'Bagian Tekan : Form7.Text6 = Form2.Text27 Form7.Text7 = Round(Form2.Text20, 1) Form7.Text8 = Form2.Text26 Form7.Text9 = Form2.Text6 Form7.Text10 = Form2.Text29 Form7.Text11 = Form2.Text33 Form7.Text12 = Form2.Text10 'C2 'C2m 'C2u 'U2 'W2 'Alpha2 'Betha2 Private Sub Image2_Click() Form5.Show Me.Hide Private Sub Image3_Click() Form1.Show Unload Me Private Sub Image4_Click() End Private Sub Image5_Click() Form4.Show Me.Hide Private Sub Label43_Click()

26 Image1_Click Private Sub Label45_Click() Image3_Click Private Sub Label46_Click() Image4_Click Private Sub Label47_Click() Image5_Click Private Sub Label50_Click() Image2_Click Private Sub Timer1_Timer() Dim r, g, b As Double r = Rnd * 255 g = Rnd * 255 b = Rnd * 255 Shape1.BorderColor = RGB(r, g, b) Private Sub Timer2_Timer() Me.Caption = Right$(Me.Caption, Len(Me.Caption) - 1) + Left$(Me.Caption, 1)

27 Form 3 (a) Private Sub Command1_Click() Me.Hide Form7.Show Private Sub Form_Load() Option1.Value = 0 Option2.Value = 1 Private Sub Form_Unload(Cancel As Integer) Form2.Show Unload Me Private Sub Option1_Click() Frame4.Visible = 1 Frame5.Visible = 0 Option1.Value = 1 Option2.Value = 0 Private Sub Option2_Click() Frame4.Visible = 0 Frame5.Visible = 1 Option1.Value = 0 Option2.Value = 1

28 Private Sub Timer1_Timer() Me.Caption = Right$(Me.Caption, Len(Me.Caption) - 1) + Left$(Me.Caption, 1) Form 3 (b) Sub Isap_1() Dim c, d As Long a = 50 b = 50 c = Val(Text1.Text) * 50 d = Val(Text2.Text) * 50 'U1 'C1 With PicA.ScaleMode = 0.ScaleHeight = c ScaleLeft = 0.ScaleWidth = d ScaleTop = 0.DrawWidth = 3.DrawStyle = 0 End With

29 PicA.Line (50, 50)-(d, 50), vbblue PicA.Line (50, 50)-(50, c), vbred PicA.Line (d, 50)-(50, c), vbgreen Sub Isap_2() Dim c, d As Long a = 50 b = 50 c = Val(Text1.Text) * 50 d = Val(Text2.Text) * 50 'U1 'C1 With PicA.ScaleMode = 0.ScaleHeight = c ScaleLeft = 0.ScaleWidth = d ScaleTop = 0.DrawWidth = 1.DrawStyle = 2 End With PicA.Line (50, 0)-(50, 50), vbwhite PicA.Line (0, 50)-(50, 50), vbwhite PicA.Line (50, c)-(50, PicA.ScaleHeight), vbwhite PicA.Line (d, 50)-(PicA.ScaleWidth, 50), vbwhite Sub Tekan_1() Dim c, d, e, f, g As Long

30 a = 50 b = 100 c = Val(Text6.Text) * 50 d = Val(Text7.Text) * 50 e = Val(Text8.Text) * 50 f = Val(Text9.Text) * 50 g = Val(Text10.Text) * 50 'C2 'C2m 'C2u 'U2 'W2 With PicB.ScaleMode = 0.ScaleHeight = d * 3.5.ScaleLeft = 0.ScaleWidth = e * 3.5.ScaleTop = 0.DrawWidth = 2.DrawStyle = 0 End With PicB.Line (a, b)-(f, b), vbblue PicB.Line (a, b)-(e, d), vbred PicB.Line (e, d)-(f, b), vbgreen PicB.Line (e, d)-(e, b), vbyellow 'C2m 'U2 'C2 'W2 Sub Tekan_2() Dim c, d, e, f, g As Long a = 50 b = 100

31 c = Val(Text6.Text) * 50 d = Val(Text7.Text) * 50 e = Val(Text8.Text) * 50 f = Val(Text9.Text) * 50 g = Val(Text10.Text) * 50 'C2 'C2m 'C2u 'U2 'W2 With PicB.ScaleMode = 0.ScaleHeight = d * 3.5.ScaleLeft = 0.ScaleWidth = e * 3.5.ScaleTop = 0.DrawWidth = 2.DrawStyle = 0 End With PicB.Line (e, b - 0.1)-(f, b - 0.1), &HC000C0 'C2u Sub tekan_3() Dim c, d, e, f, g As Long a = 50 b = 100 c = Val(Text6.Text) * 50 d = Val(Text7.Text) * 50 e = Val(Text8.Text) * 50 f = Val(Text9.Text) * 50 g = Val(Text10.Text) * 50 'C2 'C2m 'C2u 'U2 'W2

32 With PicB.ScaleMode = 0.ScaleHeight = d * 3.5.ScaleLeft = 0.ScaleWidth = e * 3.5.ScaleTop = 0.DrawWidth = 1.DrawStyle = 2 End With PicB.Line (a, 0)-(a, b), vbwhite PicB.Line (0, b)-(a, b), vbwhite PicB.Line (e, d)-(e, PicB.ScaleHeight), vbwhite PicB.Line (e, d)-(e, 0), vbwhite PicB.Line (f, 0)-(f, b), vbwhite PicB.Line (f, b)-(picb.scalewidth, b), vbwhite Private Sub Command2_Click() Isap_1 Isap_2 Private Sub Command3_Click() Tekan_1 Tekan_2 tekan_3

33 Private Sub Form_Unload(Cancel As Integer) Form2.Show Unload Form3 Private Sub Image1_Click() Unload Me Unload Form3 Form2.Show Private Sub Timer1_Timer() Me.Caption = Right$(Me.Caption, Len(Me.Caption) - 1) + Left$(Me.Caption, 1) Form 4 Option Explicit

34 Private Sub Command1_Click() Chart1.Visible = 1 VScroll4_Change Private Sub Command3_Click() Chart2.Visible = False Private Sub Command4_Click() Chart2.Visible = 1 VScroll4_Change Private Sub Command5_Click() Form6.Show Private Sub Timer1_Timer() Me.Caption = Right$(Me.Caption, Len(Me.Caption) - 1) + Left$(Me.Caption, 1) Private Sub VScroll1_Change() Chart1.Visible = 1 With Chart1 Dim b(0 To 60, 4) Dim h, j, k, i h = VScroll1.Value j = VScroll2.Value k = VScroll3.Value 'Hst = Hd-Hs 'Hd 'Q

35 For i = 0 To 60 b(i, 0) = Round(i, 3) & " " b(i, 1) = ((i / 6) ^ 2) + j b(i, 2) = (-(i / 6) ^ 2) + h b(i, 3) = j Next i.charttype = VtChChartType2dLine.ChartData = b.rowcount = k + 1 End With Private Sub VScroll1_Scroll() VScroll1_Change Private Sub VScroll2_Change() VScroll1_Change Private Sub VScroll2_Scroll() VScroll2_Change Private Sub VScroll3_Change() VScroll1_Change Private Sub VScroll3_Scroll() VScroll3_Change

36 Private Sub Command2_Click() Chart1.Visible = False Private Sub Form_Load() Dim a, b As Long Chart1.Visible = 0 a = Val(Form1.HScroll2.Value) / 10 b = Val(Form1.HScroll1.Value) VScroll1.Value = Fix(a + b) VScroll3.Value = 30 VScroll5.Value = Val(Form1.Text3.Text) Text1.Text = VScroll5.Value Command1_Click Private Sub Form_Unload(Cancel As Integer) Form2.Show Unload Me Private Sub VScroll4_Change() With Chart2 Dim b(0 To 60, 2) Dim h, i, k As Double

37 k = VScroll4.Value h = VScroll5.Value For i = 0 To 60 b(i, 0) = Round(i, 3) & " " b(i, 1) = 1450 * ((i / 3600) ^ 0.5) / (h ^ 0.75) Next i.charttype = VtChChartType2dLine.ChartData = b.rowcount = i End With Private Sub VScroll4_Scroll() VScroll4_Change Private Sub VScroll5_Change() VScroll4_Change Text1.Text = VScroll5.Value Private Sub VScroll5_Scroll() VScroll5_Change Form 5 Priv40 ate Sub Form_Resize()

38 Text1.Height = Me.Height - 50 Text1.Width = Me.Width - 50 Private Sub Form_Unload(Cancel As Integer) Unload Me Form2.Show Private Sub mnuprewords_click() LoadDokumen ("Penjelasan.txt") Private Sub mnusymbol_click() LoadDokumen ("ArtiSimbol.txt") Private Sub mnutututp_click() Unload Me Form2.Show Modul Load Dim Pesan3N As String

39 Public Sub LoadDokumen(ByVal Dokumen As String) Dim dummy As String Dim dumdir As String On Error GoTo ErrHandler dumdir = Dir("$(ProgramFiles)\Kompresor") Open Dokumen For Input As #1 Form5.Show Form5.Text1 = "" While Not EOF(1) Line Input #1, dummy With Form5.Text1.Text =.Text + dummy + vbcrlf End With Wend Close #1 If Dokumen = "ArtiSimbol.txt" Then Form5.Caption = "Arti Simbol" Else Form5.Caption = "Penjelasan" End If Exit Sub ErrHandler: Pesan3N = MsgBox("Program tidak menemukan " & Dokumen & "! ", vbcritical, "Peringatan :")

Visual Basic 6 Lecture 7. The List Box:

Visual Basic 6 Lecture 7. The List Box: The List Box: The function of the List Box is to present a list of items where the user can click and select the items from the list or we can use the List Box control as a simple memory to save data.

More information

Programming with visual Basic:

Programming with visual Basic: Programming with visual Basic: 1-Introdution to Visual Basics 2-Forms and Control tools. 3-Project explorer, properties and events. 4-make project, save it and its applications. 5- Files projects and exercises.

More information

LAMPIRAN. Universitas Sumatera Utara

LAMPIRAN. Universitas Sumatera Utara 61 LAMPIRAN 61 Listing Program Form 1 ( Barang ) Dim CnSuzuya As ADODB.Connection Dim CommBar As ADODB.Command Dim rsbar As ADODB.Recordset Dim StrSql As String Dim psn As Byte Private Sub Form_Load()

More information

EMPLOYEE PAYROLL SYSTEM

EMPLOYEE PAYROLL SYSTEM EX.NO:1 DATE: EMPLOYEE PAYROLL SYSTEM AIM: To develop a Employee Payroll System using visual Basic. PROCEDURE: 1. Problem statement Software is to be designed for supporting a computerized employee payroll

More information

PROJECT ELECTRONIC CONTROL GAS INJECTION SYSTEM

PROJECT ELECTRONIC CONTROL GAS INJECTION SYSTEM PROJECT ELECTRONIC CONTROL GAS INJECTION SYSTEM SOURCE CODE VISUAL BASIC Dim WR As Boolean Dim pw Dim data Dim oxg Public index1 Dim index2 Dim k Dim u Dim refd Dim datar1$(1000, 9) Dim c_data Dim A$(10)

More information

An InputBox( ) function will display an input Box window where the user can enter a value or a text. The format is

An InputBox( ) function will display an input Box window where the user can enter a value or a text. The format is InputBox( ) Function An InputBox( ) function will display an input Box window where the user can enter a value or a text. The format is A = InputBox ( Question or Phrase, Window Title, ) Example1: Integer:

More information

LAMPIRAN 1. Kode Program Splash Screen

LAMPIRAN 1. Kode Program Splash Screen LAMPIRAN 1 Kode Program Splash Screen Private Sub Form_Load() lblversion.caption = "Version " & App.Major & "." & App.Minor & "." & App.Revision lblproductname.caption = App.Title lblcopyright.caption

More information

2Practicals Visual Basic 6.0

2Practicals Visual Basic 6.0 2Practicals Visual Basic 6.0 Practical 1: 1. Navigation of Visual Basic Integrated Development Environment The Visual Basic IDE is made up of a number of components Menu Bar Tool Bar Project Explorer Properties

More information

PROGRAM BASCOM AVR. ' inisialisasi '

PROGRAM BASCOM AVR. ' inisialisasi ' PROGRAM BASCOM AVR '--------------------------------------- inisialisasi '----------------------- $prog &HFF, &HC4, &HD9, &H00 ' generated. Take care that the chip supports all fuse bytes. $regfile = "m8def.dat"

More information

HELP - VB TIPS. ANIMATE AN IMAGE BOX Insert a module. In this module, create a global variable: Global x

HELP - VB TIPS. ANIMATE AN IMAGE BOX Insert a module. In this module, create a global variable: Global x HELP - VB TIPS Load an image to an image box from a certain folder If you use this method, won t work on N:\ To load an image to a image control Image1.Picture = LoadPicture("H:\MyVBfolder\stop.gif") Load

More information

Propose a mathematical formula to verify the authenticity of any product of the integers using a scale (9) and verified using computer

Propose a mathematical formula to verify the authenticity of any product of the integers using a scale (9) and verified using computer (9) Propose a mathematical formula to verify the authenticity of any product of the integers using a scale (9) and verified using computer. (9). Abstract This research aims to propose a mathematical formula

More information

NATIONAL DIPLOMA IN COMPUTER TECHNOLOGY

NATIONAL DIPLOMA IN COMPUTER TECHNOLOGY UNESCO-NIGERIA TECHNICAL & VOCATIONAL EDUCATION REVITALISATION PROJECT-PHASE II NATIONAL DIPLOMA IN COMPUTER TECHNOLOGY OOBASIC/VISUAL BASIC PROGRAMMING COURSE CODE: COM 211 YEAR I SEMESTER II PRACTICAL

More information

The Control Properties

The Control Properties The Control Properties Figure Before writing an event procedure for the control to response to a user's input, you have to set certain properties for the control to determine its appearance and how it

More information

PROGRAM 1: SIMPLE CALCULATOR

PROGRAM 1: SIMPLE CALCULATOR PROGRAM 1: SIMPLE CALCULATOR Option Explicit Dim operand1 As Double, operand2 As Double Dim op1 As Double, op2 As Double Dim operator As String Dim cleardisplay As Boolean Private Sub Cmdclear_Click()

More information

AIM To analyze, design and develop code for Online Course Reservation System using Rational Rose software

AIM To analyze, design and develop code for Online Course Reservation System using Rational Rose software Ex. No.1 Date: ONLINE COURSE RESERVATION AIM To analyze, design and develop code for Online Course Reservation System using Rational Rose software PROBLEM STATEMENT As the head of information systems for

More information

LISTING PROGRAM. 1. Menu Utama

LISTING PROGRAM. 1. Menu Utama LISTING PROGRAM 1. Menu Utama Dim rsupdate As Recordset Dim rscari As Recordset Dim strusername As String * 10 Dim Status As String * 1 Dim JumUser As Integer Public system_mon As String Public service_mon

More information

LAMPIRAN A : LISTING PROGRAM

LAMPIRAN A : LISTING PROGRAM LAMPIRAN A : LISTING PROGRAM 1. frmmenu.frm Dim CN As Connection Dim rshapus As Recordset Private Sub DfaHasil_Click() Call frmlap.cetak Private Sub Form_Load() Set CN = New ADODB.Connection CN.ConnectionString

More information

LAMPIRAN FORM 1 Universitas Sumatera Universitas Utara

LAMPIRAN FORM 1 Universitas Sumatera Universitas Utara LAMPIRAN FORM 1 Private Sub Text2_KeyPress(KeyAscii As Integer) If KeyAscii = vbkeyreturn Then Set tbladministrator = New ADODB.Recordset With tbladministrator.open "SELECT * FROM Administrator WHERE userid

More information

Function: function procedures and sub procedures share the same characteristics, with

Function: function procedures and sub procedures share the same characteristics, with Function: function procedures and sub procedures share the same characteristics, with one important difference- function procedures return a value (e.g., give a value back) to the caller, whereas sub procedures

More information

LAMPIRAN LIST PROGRAM

LAMPIRAN LIST PROGRAM LAMPIRAN LIST PROGRAM 1. Modules Public conn As New ADODB.Connection Public rstb_pendekatan As ADODB.Recordset Public rstb_solusi As ADODB.Recordset Public rstb_alasan As ADODB.Recordset Public rstb_pilihan

More information

Type Storage Range of Values

Type Storage Range of Values University of Misan College of Engineering Department of Civil Engineering Course Title: Visual Basic Second Stage Fourth Lecture Visual Basic Data There are many types of data that we come across in our

More information

Experiment No. 2. Program:

Experiment No. 2. Program: Index 1. C++ program to perform bubble sort. 2. C++ program with class ratio and assign(),convert(),invert(),print() functions. 3. C++ program with circle class using default constructor. 4. C++ program

More information

Visual Basic ,

Visual Basic , Visual Basic 6.0..!"# !"# $#%$$"& ( ( 6.0) 2 $, -&, - 1.,. Caption Hello, On O ff. * + +, -. 1-Arrow, + - 4 +, 2- Cross. - project1.vbp, 4-form1.frm. 2/59 !"# $#%$$"& ( ( 6.0) 3 $, -&, - 3/59 !"# $#%$$"&

More information

( ) 1.,, Visual Basic,

( ) 1.,, Visual Basic, ( ) 1. Visual Basic 1 : ( 2012/2013) :. - : 4 : 12-14 10-12 2 http://www.institutzamatematika.com/index.ph p/kompjuterski_praktikum_2 3 2 / ( ) 4 90% 90% 10% 90%! 5 ? 6 "? : 7 # $? - ( 1= on 0= off ) -

More information

11-1 11-1.1 11-1.2 11-2 11-2.1 11-2.2 108 II 11-1 Timer 11-1.1 Windows 11-1 11-1 Visual Basic Animation Animation 11 109 Animation Animation RLE AVI AVI 11-2 Visual Basic Animation / Microsoft Windows

More information

Visual Basic 1

Visual Basic 1 Visual Basic 1 www.ashagroup.org fiz; fo kffkz;ksa] ;s uksv~l vki lcdh lgk;rk ds fy, cuk;s x;s gsaa ;s uksv~l ljy Hkk kk esa cuk;s x;s gsaa bu uksv~l dks i

More information

C:\MasterPageWeb\HAPR\docu\HAPR_VB6_version15sept06.rtf 19/10/08. HARP_VB projet en VB6

C:\MasterPageWeb\HAPR\docu\HAPR_VB6_version15sept06.rtf 19/10/08. HARP_VB projet en VB6 HARP_VB projet en VB6 Option Explicit Dim Value As Integer Dim i As Integer Dim il As Long Dim LL, L1S, L250µS, L500µS, L1mS, L2mS, L5mS, L10mS As Single Dim offsetdepart As Long Dim police(256, 8) As

More information

Visual Basic , ,. Caption Hello, On Off. * + +, -. 1-Arrow, , 2- Cross. - project1.vbp, 4-form1.frm.

Visual Basic , ,. Caption Hello, On Off. * + +, -. 1-Arrow, , 2- Cross. - project1.vbp, 4-form1.frm. Visual Basic 6.0 1.,. Caption Hello, On Off. * + +, -. 1-Arrow, + - 4 +, 2- Cross. - project1.vbp, 4-form1.frm...!"# 2/59 3...

More information

Information Hiding In Images Using Randomly Selected Points

Information Hiding In Images Using Randomly Selected Points Republic of Iraq Ministry Of Higher Education And Scientific Research University Of Baghdad College Of Science Department Of Computer Science Information Hiding In Images Using Randomly Selected Points

More information

On Railway Reservation. U G D C A Semester VI. Roll No DA

On Railway Reservation. U G D C A Semester VI. Roll No DA On Railway Reservation U G D C A Semester VI Submitted to: Dr. P. K. Sen (Co-ordinator) Submitted By: (Name of Student) Roll No. 14836DA Contents 1. Acknowledgement 2. Objectives 3. Declaration 4. Analysis

More information

Visual Basic. The Integrated Development Environment. Menu Bar

Visual Basic. The Integrated Development Environment. Menu Bar Visual Basic Visual Basic is initiated by using the Programs option > Microsoft Visual Basic 6.0 > Visual Basic 6.0. Clicking the Visual Basic icon, we can view a copyright screen enlisting the details

More information

L A M P I R A N. Universitas Sumatera Utara

L A M P I R A N. Universitas Sumatera Utara L A M P I R A N LISTING PROGRAM 1. Listing Pembuka Dim strado$ Dim n As Integer Private Sub Close_Click() End Private Sub Command1_Click() If Option1.Value = True Then Search.Show If Option2.Value = True

More information

Visual Basic ,

Visual Basic , Visual Basic 6.0 1.,. Caption Hello, On O ff. * + +, -. 1-Arrow, + - 4 +, 2- Cross. - project1.vbp, 4-form1.frm...!"# 2/59 3...

More information

LAMPIRAN - A. Instruksi Mikrokontroler

LAMPIRAN - A. Instruksi Mikrokontroler LAMPIRAN - A Instruksi Mikrokontroler /***************************************************** This program was produced by the CodeWizardAVR V1.25.3 Professional Automatic Program Generator Copyright 1998-2007

More information

Contents Introduction Getting Started Visual Basic Form Configuration Entering the VB Code

Contents Introduction Getting Started Visual Basic Form Configuration Entering the VB Code Your comments and suggestions on the operation of this software are welcome. Please address them to: ICONICS 100 Foxborough Blvd. Foxborough, MA 02035 Tel: 508-543-8600 Fax: 508-543-1503 E-mail: support@iconics.com

More information

ISA PCI Peripherals Connect Interface ISA. Enhanced Parallel Port EPP

ISA PCI Peripherals Connect Interface ISA. Enhanced Parallel Port EPP ) ( 205 2003 4 ISA PCI Peripherals Connect Interface ISA Enhanced Parallel Port EPP IEEE 1284 1994 Intel Xircom Zenith 4-bit Nibble Mode EPP Enhanced Parallel Port ECP Extended Capabilities Parallel bi-direction

More information

Angel International School - Manipay 1 st Term Examination November, 2015

Angel International School - Manipay 1 st Term Examination November, 2015 Grade 10 Angel International School - Manipay 1 st Term Examination November, 2015 Information & Communication Technology Duration: 3.00 Hours Part 1 Choose the appropriate answer 1) Find the correct type

More information

22. VB Programming Fundamentals Data Access with Data Objects

22. VB Programming Fundamentals Data Access with Data Objects 22. VB Programming Fundamentals Data Access with Data Objects 22.1 Data Access Object MS Data Access Object (DAO) enables you to use a programming language to access and manipulate data in local or remote

More information

LISTING PROGRAM. Form Splash

LISTING PROGRAM. Form Splash LISTING PROGRAM Form Splash Private Sub Form_Load() lblversion.caption = "Version " & App.Major & "." & App.Minor & "." & App.Revision lblproductname.caption = App.Title lblcopyright.caption = App.LegalCopyright

More information

COMPUTER SCIENCE-I PRACTICALS EXP-1 Aim: Write a function in C++ that exchanges data (passing by reference) using swap function to interchange the

COMPUTER SCIENCE-I PRACTICALS EXP-1 Aim: Write a function in C++ that exchanges data (passing by reference) using swap function to interchange the COMPUTER SCIENCE-I PRACTICALS EXP-1 Aim: Write a function in C++ that exchanges data (passing by reference) using swap function to interchange the given two numbers. Program: #include #include

More information

Learn Visual Basic 6.0

Learn Visual Basic 6.0 7-1 Learn Visual Basic 6.0 7. Graphics Techniques with Visual Basic Review and Preview In past classes, we've used some graphics tools: line tools, shape tools, image boxes, and picture boxes. In this

More information

ต วอย างการสร างฟอร ม เมน การใช งาน

ต วอย างการสร างฟอร ม เมน การใช งาน ต วอย างการสร างฟอร ม เมน การใช งาน Option Explicit Dim conn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim Sql As String Private Sub Command6_Click() Form2.Hide Form3.Show Private Sub Command7_Click()

More information

LAMPIRAN A FOTO Radio Control Helikopter dan Pengendalinya

LAMPIRAN A FOTO Radio Control Helikopter dan Pengendalinya LAMPIRAN A FOTO Radio Control Helikopter dan Pengendalinya Tampak Atas A-1 Tampak Depan A-2 Tampak Samping A-3 Tampak Belakang A-4 Pengendali A-5 LAMPIRAN B PROGRAM PADA MICROSOFT VISUAL BASIC 6 DAN PENGONTROL

More information

LAMPIRAN A LISTING PROGRAM. Universitas Sumatera Utara

LAMPIRAN A LISTING PROGRAM. Universitas Sumatera Utara LAMPIRAN A LISTING PROGRAM LISTING PROGRAM MENU UTAMA Dim T As String Dim i Private Sub Dafsis_Click() Form5.Show Private Sub Dafwai_Click() Form5.Show Private Sub Dasis_Click() Form2.Show Private Sub

More information

NIDEK AUTO REFRACTOMETER ARK-710A INTERFACE MANUAL

NIDEK AUTO REFRACTOMETER ARK-710A INTERFACE MANUAL NIDEK AUTO REFRACTOMETER ARK-710A INTERFACE MANUAL MRK4D*RTZ001B/E TOTAL PAGE: 32 2005. 2. 8 NIDEK CO., LTD. : 34-14, Maehama, Hiroishi-cho, Gamagori, Aichi 443-0038, Japan (Manufacturer) Telephone: (0533)

More information

Chapter 1. Block Diagram. Text .. 1

Chapter 1. Block Diagram. Text .. 1 Chapter 1 ก Visual Basic Scilab ก ก Visual Basic Scilab ก ก (Temporary File) ก ก ก ก ก ก Visual Basic ก (Interface) ก Scilab Text File ก Visual Basic ก ก ก ก Block Diagram ก ก Visual Basic ก Scilab ก.sce

More information

Mr.Khaled Anwar ( )

Mr.Khaled Anwar ( ) The Rnd() function generates random numbers. Every time Rnd() is executed, it returns a different random fraction (greater than or equal to 0 and less than 1). If you end execution and run the program

More information

LAMPIRAN : LISTING PROGRAM

LAMPIRAN : LISTING PROGRAM LAMPIRAN : LISTING PROGRAM Kode Program Form Login Private Sub cbolevel_click() If cbolevel.text = "Pengguna" Then txtlogin.enabled = False txtpass.enabled = False txtlogin.visible = False txtpass.visible

More information

Lab Sheet 4.doc. Visual Basic. Lab Sheet 4: Non Object-Oriented Programming Practice

Lab Sheet 4.doc. Visual Basic. Lab Sheet 4: Non Object-Oriented Programming Practice Visual Basic Lab Sheet 4: Non Object-Oriented Programming Practice This lab sheet builds on the basic programming you have done so far, bringing elements of file handling, data structuring and information

More information

Financial Functions (all with subtypes: Normal, Stairs, Points, Height, Hollow, Colors, Marks, No Border except where indicated):

Financial Functions (all with subtypes: Normal, Stairs, Points, Height, Hollow, Colors, Marks, No Border except where indicated): Financial Charting in TeeChart Pro TeeChart Pro has always been at the cutting edge of Financial Charting and the ActiveX v6 makes this very clear; with three distinct financial series and fourteen dedicated

More information

19. VB Project and Menu Design

19. VB Project and Menu Design 19. VB Project and Menu Design 19.1 Working with Projects As you develop an application, you work with a project to manage all the different files that make up the application. A VB project consists of:

More information

Advanced Visual Basic

Advanced Visual Basic Lab Excercises and Solutions Advanced Visual Basic LAB EXERCISES AND SOLUTIONS Ex1 - TextBoxDemo Create a standard exe Open a new form and change the name of the form as example & change the caption as

More information

Angel International School - Manipay 1 st Term Examination November, 2015

Angel International School - Manipay 1 st Term Examination November, 2015 Angel International School - Manipay 1 st Term Examination November, 2015 Information & Communication Technology Grade 11A & C Duration: 3.00 Hours Part 1 Choose the most appropriate answer. 1) Find the

More information

Control Properties. Example: Program to change background color

Control Properties. Example: Program to change background color Control Properties Before writing an event procedure for the control to response to an event, you have to set certain properties for the control to determine its appearance and how will it work with the

More information

Tutorial, Source code, Request Program Visual Basic

Tutorial, Source code, Request Program Visual Basic Tutorial, Source code, Request Program Visual Basic Oleh : Moh. A Azis Membuat Form Data Barang Program Persediaan Barang Form Data Barang digunakan untuk menyimpan data barang dan memberikan info mengenai

More information

University of Technology Laser & Optoelectronics Engineering Department Visual basic Lab. LostFocus Resize System event

University of Technology Laser & Optoelectronics Engineering Department Visual basic Lab. LostFocus Resize System event Events Private Sub Form_Load() Load Close Unload Private Sub Form_Unload(Cancel As Integer) Cancel=True Cancel * Show Activate SetFocus Focus Deactivate SetFocus GotFocus CommandButton LostFocus Resize

More information

Before We Begin. Introduction to Computer Use II. Overview (1): Winter 2005 (Section M) CSE 1530 Winter Bill Kapralos.

Before We Begin. Introduction to Computer Use II. Overview (1): Winter 2005 (Section M) CSE 1530 Winter Bill Kapralos. Winter 2005 (Section M) Topic B: Variables, Data Types and Expressions Wednesday, January 25 2006 CSE 1530, Winter 2006, Overview (1): Before We Begin Some administrative details Some questions to consider

More information

Project : Version : Date : 11/04/2016 Author : Freeware, for evaluation and non-commercial use only Company : Comments:

Project : Version : Date : 11/04/2016 Author : Freeware, for evaluation and non-commercial use only Company : Comments: Lampiran 1 Listing program dari seluruh sistem. /***************************************************** This program was produced by the CodeWizardAVR V2.04.9 Evaluation Automatic Program Generator Copyright

More information

Else. End If End Sub End Class. PDF created with pdffactory trial version

Else. End If End Sub End Class. PDF created with pdffactory trial version Dim a, b, r, m As Single Randomize() a = Fix(Rnd() * 13) b = Fix(Rnd() * 13) Label1.Text = a Label3.Text = b TextBox1.Clear() TextBox1.Focus() Private Sub Button2_Click(ByVal sender As System.Object, ByVal

More information

LAMPIRAN A PROGRAM FLOWSTONE

LAMPIRAN A PROGRAM FLOWSTONE LAMPIRAN A PROGRAM FLOWSTONE A-1 Tampilan GUI pada FlowStone A-2 Program Tambahan yang Dibuat Untuk Membaca Frekuensi A-3 Program Tambahan yang Dibuat Untuk Menyimpan Data A-4 LAMPIRAN B PROGRAM VISUAL

More information

Visual Basic Visual Basic

Visual Basic Visual Basic 9-1 9-2 9-1.1 9-1.2 9-1.3 9-2.1 9-2.2 9-2.3 9-3 Visual Basic 9-3.1 Visual Basic 9-3.2 9-4 9-4.1 9-4.2 2 II 9-1 GoTo http://noi.stinfo.net/ xbqj/xbqj_12.htm structured programming 9-1 9-1 a goto b c goto

More information

Universitas Sumatera Utara

Universitas Sumatera Utara 43 L A M P I R A N 44 Penulisan Kode Program Aplikasi Game Tetris A. Kode program aplikasi game tetris untuk form1 ( MainF.frm ) adalah sebagai berikut. Dim BANK As Database Dim RS As DAO.Recordset Private

More information

LPTCOM. Bruce Misner Lakehead University h d3 RD2 pin 21. RD3 pin h d4. RD4 pin 27 RD5 pin h d5. RD6 pin 29 RD7 pin H d6

LPTCOM. Bruce Misner Lakehead University h d3 RD2 pin 21. RD3 pin h d4. RD4 pin 27 RD5 pin h d5. RD6 pin 29 RD7 pin H d6 LPTCOM By Bruce Misner Lakehead University LPTCOM is a demonstration of a robust bi-directional communcation between the PIC microcontroller and the printer port of your PC. Incorporating more handshaking

More information

IS 320 Spring 96 Page 1 Exam 1. Please use your own paper to answer the following questions. Point values are shown in parentheses.

IS 320 Spring 96 Page 1 Exam 1. Please use your own paper to answer the following questions. Point values are shown in parentheses. IS 320 Spring 96 Page 1 Please use your own paper to answer the following questions. Point values are shown in parentheses. 1. (10) Consider the following segment of code: If txtansicode.text < "0" Or

More information

'... '... '... Developer: William H. White (consultant) '... With: TEKsystems Inc. '... For: AIG. Financial Information Systems

'... '... '... Developer: William H. White (consultant) '... With: TEKsystems Inc.   '... For: AIG. Financial Information Systems ThisWorkbook - 1 Developer: William H. White (consultant) With: TEKsystems Inc. www.teksystems.com For: AIG Financial Information Systems 1 NY Plaza, 15th floor Current contact: william.white@aig.com (212)

More information

CMPT 110 MIDTERM OCTOBER 18, 2001

CMPT 110 MIDTERM OCTOBER 18, 2001 CMPT 110 MIDTERM OCTOBER 18, 2001 1 What will be displayed when the command button is clicked? 7% Level of difficulty 7 (out of 10) Assume there is a command button called cmdbutton Assume there is a picturebox

More information

File Organization and Management

File Organization and Management 1 UNESCO-NIGERIA TECHNICAL & VOCATIONAL EDUCATION REVITALISATION PROJECT-PHASE II NATIONAL DIPLOMA IN COMPUTER TECHNOLOGY File Organization and Management YEAR II- SE MESTER I PRACTICAL Version 1: December

More information

VB komande. Programiranje 1

VB komande. Programiranje 1 VB komande Programiranje 1 Zadatak 1: Sastaviti program koji se sastoji iz jedne ListBox kontrole, jedne Textbox kontrole i dva komandna dugmeta. Klikom na prvo komandno dugme umeće se u ListBox sadržaj

More information

KARTU BIMBINGAN TUGAS AKHIR MAHASISWA PEMBAHASAN PADA ASISTENSI MENGENAI, PADA BAB

KARTU BIMBINGAN TUGAS AKHIR MAHASISWA PEMBAHASAN PADA ASISTENSI MENGENAI, PADA BAB 62 KEMENTERIAN PENDIDIKAN NASIONAL UNIVERSITAS SUMATERA UTARA FAKULTAS MATEMATIKA DAN ILMU PENGETAHUAN ALAM Jl. Bioteknologi No.1 Kampus USU Padang Bulan Medan 20155 Telp. (061) 8211050, 8214290, Fax (061)

More information

LISTING PROGRAM. 1. Menu Utama

LISTING PROGRAM. 1. Menu Utama LISTING PROGRAM 1. Menu Utama Option Explicit Dim rssms As Recordset Dim stopen As String * 1 Dim IDSms As Integer Dim rspesan As Recordset Dim Kode As String * 1 Dim rspaket As Recordset Dim NmPaket As

More information

20. VB Programming Fundamentals Variables and Procedures

20. VB Programming Fundamentals Variables and Procedures 20. VB Programming Fundamentals Variables and Procedures 20.1 Variables and Constants VB, like other programming languages, uses variables for storing values. Variables have a name and a data type. Array

More information

Start Visual Basic. Session 1. The User Interface Form (I/II) The Visual Basic Programming Environment. The Tool Box (I/II)

Start Visual Basic. Session 1. The User Interface Form (I/II) The Visual Basic Programming Environment. The Tool Box (I/II) Session 1 Start Visual Basic Use the Visual Basic programming environment Understand Essential Visual Basic menu commands and programming procedure Change Property setting Use Online Help and Exit Visual

More information

An Introduction to Custom WebBrowsers for the Qualitative Study of Hypertext Navigation

An Introduction to Custom WebBrowsers for the Qualitative Study of Hypertext Navigation Jl. of Educational Multimedia and Hypermedia (2002) 11(3), 221-235 An Introduction to Custom WebBrowsers for the Qualitative Study of Hypertext Navigation PATRICIA M. BOECHLER AND MICHAEL R.W. DAWSON University

More information

VISUAL BASIC SERVER INTERFACE CODE. Visual Basic 6 Graphical Interface 103. Visual Basic Module rtsscomm.bas Code.115

VISUAL BASIC SERVER INTERFACE CODE. Visual Basic 6 Graphical Interface 103. Visual Basic Module rtsscomm.bas Code.115 APPENDIX E VISUAL BASIC SERVER INTERFACE CODE Page E.1: E.2: E.3: E.4: E.5: Visual Basic 6 Graphical Interface 103 Visual Basic Form gyrofront.frm Code.....104 Visual Basic Module mydatatypes.bas Code..114

More information

Visual Basic

Visual Basic 12-1 12-2 12-3 12-1.1 12-1.2 12-2.1 12-2.2 12-3.1 12-3.2 12-4 12-5 12-4.1 12-4.2 12-5.1 12-5.2 140 II 12-1 data file 12-1.1 record field 4 12-1 4 12 141 12-1... 12-1.2 sequential file random file binary

More information

TI-84 Calculator Tips, Tricks, and Programs 1 of 11

TI-84 Calculator Tips, Tricks, and Programs 1 of 11 TI-84 Calculator Tips, Tricks, and Programs 1 of 11 Command catalog: a.) [2ND] [CATALOG] b.) press letter to access the Catalog section that begins with the pressed letter c.) scroll down to access a command

More information

Model. November 2009 Pages in total: 52 XRKT2*RTZ001D/E

Model. November 2009 Pages in total: 52 XRKT2*RTZ001D/E AUTO REF/KERATO/TONOMETER Model TONOREFII INTERFACE MANUAL November 2009 Pages in total: 52 XRKT2*RTZ001D/E NIDEK CO., LTD. : 34-14, Maehama, Hiroishi-cho, Gamagori, Aichi 443-0038, Japan (Manufacturer)

More information

Macro Programming Reference Guide. Copyright 2005 Scott Martinez

Macro Programming Reference Guide. Copyright 2005 Scott Martinez Macro Programming Reference Guide Copyright 2005 Scott Martinez Section 1. Section 2. Section 3. Section 4. Section 5. Section 6. Section 7. What is macro programming What are Variables What are Expressions

More information

Universitas Sumatera Utara

Universitas Sumatera Utara Option Explicit DefLng A-Z '--------------------------------------------------------------------------------------------- #Const Test = False '---------------------------------------------------------------------------------------------

More information

TABLE OF CONTENTS ADVANCED VISUAL BASIC

TABLE OF CONTENTS ADVANCED VISUAL BASIC TABLE OF CONTENTS ADVANCED VISUAL BASIC TABLE OF CONTENTS ADVANCED VISUAL BASIC...1 REVIEW OF IMPORTANT PROGRAMMING CONCEPTS...4 OVERVIEW...4 EXCERPT FROM WIKIPEDIA ARTICLE ON CAMELCASE...5 REVIEW QUESTIONS...6

More information

CSE 1530: Introduction to Computer Use II - Programming. 1a. [4 points, one point each] Define/explain any four of the following terms.

CSE 1530: Introduction to Computer Use II - Programming. 1a. [4 points, one point each] Define/explain any four of the following terms. 1. Basic Knowledge 1a. [4 points, one point each] Define/explain any four of the following terms. Algorithm: A set of step-by-step instructions that when completed, solve a problem. Procedural programming:

More information

Data Acquisition over Ethernet using Serial Device Server - NPort 5210 PRL-TN

Data Acquisition over Ethernet using Serial Device Server - NPort 5210 PRL-TN Data Acquisition over Ethernet using Serial Device Server - NPort 5210 PRL-TN-2010-96 Data Acquisition over Ethernet using Serial Device Server - NPort 5210 PRL-TN-2010-96 Introduction 1 Serial Device

More information

LAMPIRAN A: LISTING PROGRAM

LAMPIRAN A: LISTING PROGRAM LAMPIRAN A: LISTING PROGRAM 1. Form Home Private Sub Command1_Click() frmhome.hide frmnavigasi.show Private Sub Command2_Click() End Private Sub Timer1_Timer() If Picture1.Visible = False Then Picture1.Visible

More information

LAMPIRAN A. Universitas Sumatera Utara

LAMPIRAN A. Universitas Sumatera Utara 63 LAMPIRAN A Rangkaian Lengkap Perangkat Keras Rangkaian ini terdiri dari Rangkaian Power Supply (PSA), Mikrokontroller atmega8535, RFID Reader ID 12, Rangkaian Infra Merah Fotodioda, driver max232 dan

More information

Customizable Progress Bar for VB6 Based on graphics in picture boxes dec 23, 2017 by Gerard Hageman

Customizable Progress Bar for VB6 Based on graphics in picture boxes dec 23, 2017 by Gerard Hageman Customizable Progress Bar for VB6 Based on graphics in picture boxes dec 23, 2017 by Gerard Hageman 3 Versions Select in demo window: version 1 version 2 version 3 version 1 version 2 version 3 Version

More information

17. Introduction to Visual Basic Programming

17. Introduction to Visual Basic Programming 17. Introduction to Visual Basic Programming Visual Basic (VB) is the fastest and easiest way to create applications for MS Windows. Whether you are an experienced professional or brand new to Windows

More information

Remainder Cordial Labeling of Graphs

Remainder Cordial Labeling of Graphs Journal of Algorithms and Computation journal homepage: http://jac.ut.ac.ir Remainder Cordial Labeling of Graphs R. Ponraj 1, K. Annathurai and R. Kala 3 1 Department of Mathematics, Sri Paramakalyani

More information

Interfacing with Power WinPLC

Interfacing with Power WinPLC Interfacing with Power WinPLC By Vanderhaegen Bart 1 Contents 1 Contents...1 2 Introduction...3 3 Available functions...5 3.1 Direct K8000 I/O Routines...5 3.1.1 I/O Channels...5 3.1.2 DAC Channels...6

More information

ONLINE RAILWAY RESERVATION SYSTEM

ONLINE RAILWAY RESERVATION SYSTEM Ex. No: Date: ONLINE RAILWAY RESERVATION SYSTEM AIM: methodologies To develop a software for online railway reservation system project by using software ALGORITHM: Step1: Open a VB project. Step2: Design

More information

Reading and Writing Files. Keeping Data

Reading and Writing Files. Keeping Data Reading and Writing Files Keeping Data Why do we use files? For permanently storing data. For dealing with information too large to fit in memory. Sequential Access Files Think of files as being stored

More information

MatrixVB. User s Guide Version 1. Computation. Visualization. Programming

MatrixVB. User s Guide Version 1. Computation. Visualization. Programming MatrixVB Computation Visualization Programming User s Guide Version 1 How to Contact The MathWorks: 508-647-7000 Phone 508-647-7001 Fax The MathWorks, Inc. 3 Apple Hill Drive Natick, MA 01760-2098 http://www.mathworks.com

More information

Procedures. This is a common situation -- there is some functionality that computers should have that the do not the solution is to write a procedure

Procedures. This is a common situation -- there is some functionality that computers should have that the do not the solution is to write a procedure Procedures Procedures are familiar in everyday life -- they are a standard process for achieving some objective. Procedures in computers are similar: They are a standard process of computing some result.

More information

6/14/2010. VBA program units: Subroutines and Functions. Functions: Examples: Examples:

6/14/2010. VBA program units: Subroutines and Functions. Functions: Examples: Examples: VBA program units: Subroutines and Functions Subs: a chunk of VBA code that can be executed by running it from Excel, from the VBE, or by being called by another VBA subprogram can be created with the

More information

Repetition Algorithms

Repetition Algorithms Repetition Algorithms Repetition Allows a program to execute a set of instructions over and over. The term loop is a synonym for a repetition statement. A Repetition Example Suppose that you have been

More information

Revisions: jee Initial jee SW Version 1.1 now includes the leave type Other

Revisions: jee Initial jee SW Version 1.1 now includes the leave type Other Memorandum To: From: File John Effland Date: 2005-03-10 Revisions: 2005-03-10 jee Initial 2006-02-24 jee SW Version 1.1 now includes the leave type Other Subject: Leave Calendar Program Architecture and

More information

DO NOT COPY AMIT PHOTOSTUDIO

DO NOT COPY AMIT PHOTOSTUDIO AMIT PHOTOSTUDIO These codes are provided ONLY for reference / Help developers. And also SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUERMENT FOR THE AWARD OF BACHELOR OF COMPUTER APPLICATION (BCA) All rights

More information

Quick Reference Guide

Quick Reference Guide SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD mikroelektronika Development tools - Books - Compilers Quick Reference Quick Reference Guide with EXAMPLES for Basic language This reference guide

More information

Lookup Project. frmlookup (Name: object is a combo box, style 2); use 4 labels: 2 for phone, 2 for mail. MsgBox Function:

Lookup Project. frmlookup (Name: object is a combo box, style 2); use 4 labels: 2 for phone, 2 for mail. MsgBox Function: Lookup Project frmlookup (Name: object is a combo box, style 2); use 4 labels: 2 for phone, 2 for mail. MsgBox Function: Help About, in a Message Box lookup.vbp programmed by C.Gribble Page 2 Code for

More information

Tech-Talk Using the PATROL Agent COM Server August 1999 Authored By: Eric Anderson

Tech-Talk Using the PATROL Agent COM Server August 1999 Authored By: Eric Anderson Tech-Talk Using the PATROL Agent COM Server August 1999 Authored By: Eric Anderson Introduction Among the many new features of PATROL version 3.3, is support for Microsoft s Component Object Model (COM).

More information