SlideShare a Scribd company logo
1 of 6
1. Form Konversi Bilangan ‘Biner,Desima,Oktal,Hexadesimal’
OptionExplicit
Private SubCommand2_Click()
Text1.Text= ""
Text2.Text= ""
End Sub
Private SubCommand3_Click()
End
End Sub
Private SubCommand1_Click()
If Option2.ValueAndOption5.Value ThenText2.Text=BinToDes(Text1.Text)
If Option2.ValueAndOption6.Value ThenText2.Text=Text1.Text
If Option2.ValueAndOption7.Value ThenText2.Text=BinToOk(Text1.Text)
If Option2.ValueAndOption8.Value ThenText2.Text=BinToHex(Text1.Text)
If Option1.ValueAndOption6.Value ThenText2.Text=DesToBin(Text1.Text)
If Option1.ValueAndOption5.Value ThenText2.Text=Text1.Text
If Option1.ValueAndOption7.Value ThenText2.Text=DesToOk(Text1.Text)
If Option1.ValueAndOption8.Value ThenText2.Text=DesToHex(Text1.Text)
If Option3.ValueAndOption6.Value ThenText2.Text=OkToBin(Text1.Text)
If Option3.ValueAndOption8.Value ThenText2.Text=OkToHex(Text1.Text)
If Option3.ValueAndOption5.Value ThenText2.Text=OkToDes(Text1.Text)
If Option3.ValueAndOption7.Value ThenText2.Text=Text1.Text
If Option4.ValueAndOption6.Value ThenText2.Text=HexToBin(Text1.Text)
If Option4.ValueAndOption5.Value ThenText2.Text=HexToDes(Text1.Text)
If Option4.ValueAndOption7.Value ThenText2.Text=HexToOk(Text1.Text)
If Option4.ValueAndOption8.Value ThenText2.Text=Text1.Text
WithText1
.SelStart= 0
.SelLength=Len(Text1.Text)
End With
End Sub
PublicFunction BinToDes(ByVal NBinerAsString) AsLong
DimA As Integer
DimB AsLong
DimNilai AsLong
OnError GoTo ErrorHandler
B = 1
For A = Len(NBiner) To1 Step -1
If Mid(NBiner,A,1) = "1" ThenNilai =Nilai + B
B = B * 2
Next
BinToDes= Nilai
ExitFunction
ErrorHandler:
BinToDes= 0
End Function
PublicFunctionDesToBin(ByVal NDesimal AsLong) AsString
DimC As Byte
DimD AsLong
DimNilai AsString
OnError GoTo ErrorHandler
D = (2 ^ 31) - 1
While D> 0
If NDesimal - D>= 0 Then
NDesimal =NDesimal - D
Nilai =Nilai & "1"
Else
If Val(Nilai) >0 Then Nilai =Nilai &"0"
End If
D = D / 2
Wend
DesToBin= Nilai
ExitFunction
ErrorHandler:
DesToBin= 0
End Function
PublicFunctionDesToHex(ByVal NDesimal AsLong) AsString
DesToHex =Hex(NDesimal)
End Function
PublicFunctionHexToDes(ByVal NHexaAsString) AsLong
DimE As Integer
DimNilai As Long
DimF As Long
DimCharNilai AsByte
OnError GoTo ErrorHandler
For E = Len(NHexa)To1 Step -1
SelectCase Mid(NHexa,E,1)
Case "0" To "9": CharNilai = CInt(Mid(NHexa,E,1))
Case Else:CharNilai =Asc(Mid(NHexa,E,1)) - 55
End Select
Nilai = Nilai +((16 ^ F) * CharNilai)
F = F + 1
NextE
HexToDes=Nilai
ExitFunction
ErrorHandler:
HexToDes=0
End Function
PublicFunctionDesToOk(ByVal NDesimalAsLong) AsString
DesToOk= Oct(NDesimal)
End Function
PublicFunction OkToDes(ByVal NOktal AsString) AsLong
DimG AsInteger
DimH As Long
DimNilai AsLong
OnError GoTo ErrorHandler
For G = Len(NOktal)To1 Step -1
Nilai = Nilai +(8 ^ H) * CInt(Mid(NOktal,G,1))
H = H + 1
NextG
OkToDes= Nilai
ExitFunction
ErrorHandler:
OkToDes= 0
End Function
PublicFunctionBinToOk(ByVal binAsLong) AsString
BinToOk= DesToOk(BinToDes(bin))
End Function
PublicFunctionBinToHex(ByVal NBinerAsLong) AsString
BinToHex = DesToHex(BinToDes(NBiner))
End Function
PublicFunctionOkToBin(ByVal NOktal AsDouble) AsString
OkToBin= DesToBin(OkToDes(NOktal))
End Function
PublicFunctionOkToHex(ByVal NOktalAsDouble) AsString
OkToHex = DesToHex(OkToDes(NOktal))
End Function
PublicFunctionHexToBin(ByVal NHexaAsString) AsString
HexToBin= DesToBin(HexToDes(NHexa))
End Function
'
PublicFunctionHexToOk(ByVal NHexaAsString) AsDouble
HexToOk= DesToOk(HexToDes(NHexa))
End Function
Private Sub Form_Load()
Move (Screen.Width - Me.Width) /2,(Screen.Height - Me.Height) /2
Text1.Text=""
Text2.Text=""
End Sub
2. Form Konversi Suhu
Private Subrumus()
If Option1.Value =True And Option4.Value =True Then
Text1.Text=Text2.Text
ElseIf Option1.Value =True AndOption5.Value=True Then
Text2.Text=Val(Text1.Text) *4 / 5
ElseIf Option1.Value =True AndOption6.Value=True Then
Text2.Text=(Val(Text1.Text) *9 / 5) + 32
End If
If Option2.Value =True And Option5.Value =True Then
Text1.Text=Text2.Text
ElseIf Option2.Value =True AndOption4.Value=True Then
Text2.Text=Val(Text1.Text) *5 / 4
ElseIf Option2.Value =True AndOption6.Value=True Then
Text2.Text=(9 / 4 * Val(Text1.Text)) +32
End If
If Option3.Value =True And Option6.Value =True Then
Text1.Text=Text2.Text
ElseIf Option3.Value =True AndOption5.Value=True Then
Text2.Text=5 / 9 * (Val(Text1.Text) - 32)
ElseIf Option3.Value =True AndOption4.Value=True Then
Text2.Text=4 / 9 * (Val(Text1.Text) - 32)
End If
End Sub
Private SubCommand1_Click()
End
End Sub
Private SubOption1_Click()
Call rumus
End Sub
Private SubOption2_Click()
Call rumus
End Sub
Private SubOption3_Click()
Call rumus
End Sub
Private SubOption4_Click()
Call rumus
End Sub
Private SubOption5_Click()
Call rumus
End Sub
Private SubOption6_Click()
Call rumus
End Sub
Private Sub Text1_Change()
Call rumus
End Sub
3. Form Menghitung Luas
Private SubCommand1_Click()
Dim luasAsDouble
luas= Val(Text1.Text) *Val(Text2.Text) /2 ' Luas Segitiga
Text3.Text= luas
End Sub
Private SubCommand2_Click()
Text1.Text= “”
Text2.Text= “”
Text3.Text= “”
End Sub
Private SubCommand3_Click()
Dim phi,luasAsDouble ' Luas Lingkaran
phi = 22 / 7
luas= phi * (Text4.Text*Text4.Text)
Text5.Text= luas
End Sub
Private Sub Command4_Click()
Text4.Text= “”
Text5.Text= “”
End Sub
Private SubCommand5_Click()
Text8.Text= Val(Text6.Text)*2 ' Luas Persegi
End Sub
Private SubCommand6_Click()
Text8.Text= “”
Text6.Text= “”
End Sub
Private SubCommand7_Click()
Text10.Text= Val(Text7.Text) *Val(Text9.Text) 'Luas Persegi Panjang
End Sub
Private SubCommand8_Click()
Text10.Text= “”
Text7.Text= “”
Text9.Text= “”
End Sub

More Related Content

What's hot

Inventory program in mca p1
Inventory program in mca p1Inventory program in mca p1
Inventory program in mca p1rameshvvv
 
Converting with custom transformer part 2
Converting with custom transformer part 2Converting with custom transformer part 2
Converting with custom transformer part 2Anirban Sen Chowdhary
 
Ejercicios vb primer parcial
Ejercicios vb primer parcialEjercicios vb primer parcial
Ejercicios vb primer parcialJose Jimenez
 
Pooja Sharma , BCA Third Year
Pooja Sharma , BCA Third YearPooja Sharma , BCA Third Year
Pooja Sharma , BCA Third YearDezyneecole
 
Kajal Gaharwal , BCA Third Year
Kajal Gaharwal , BCA Third YearKajal Gaharwal , BCA Third Year
Kajal Gaharwal , BCA Third YearDezyneecole
 
Sistema de ventas
Sistema de ventasSistema de ventas
Sistema de ventasDAYANA RETO
 
MooseX::Datamodel - Barcelona Perl Workshop Lightning talk
MooseX::Datamodel - Barcelona Perl Workshop Lightning talkMooseX::Datamodel - Barcelona Perl Workshop Lightning talk
MooseX::Datamodel - Barcelona Perl Workshop Lightning talkJose Luis Martínez
 
Puerto serialarduino
Puerto serialarduinoPuerto serialarduino
Puerto serialarduinozadkiel_123
 
Mule esb object_to_jackson_json
Mule esb object_to_jackson_jsonMule esb object_to_jackson_json
Mule esb object_to_jackson_jsonDavide Rapacciuolo
 
Ravi Prakash Yadav , BCA Third Year
Ravi Prakash Yadav , BCA Third YearRavi Prakash Yadav , BCA Third Year
Ravi Prakash Yadav , BCA Third YearDezyneecole
 
Sachin Foujdar , BCA Third Year
Sachin Foujdar , BCA Third YearSachin Foujdar , BCA Third Year
Sachin Foujdar , BCA Third YearDezyneecole
 
Aplikasi rawat-inap-vbnet
Aplikasi rawat-inap-vbnetAplikasi rawat-inap-vbnet
Aplikasi rawat-inap-vbnetDiaz Alfahrezy
 
Clojure introduction by Jason Basanese
Clojure introduction by Jason BasaneseClojure introduction by Jason Basanese
Clojure introduction by Jason BasaneseJason Basanese
 

What's hot (20)

Vb file
Vb fileVb file
Vb file
 
Inventory program in mca p1
Inventory program in mca p1Inventory program in mca p1
Inventory program in mca p1
 
Converting with custom transformer part 2
Converting with custom transformer part 2Converting with custom transformer part 2
Converting with custom transformer part 2
 
Mule esb object_to_json
Mule esb object_to_jsonMule esb object_to_json
Mule esb object_to_json
 
Converting with custom transformer
Converting with custom transformerConverting with custom transformer
Converting with custom transformer
 
Ejercicios vb primer parcial
Ejercicios vb primer parcialEjercicios vb primer parcial
Ejercicios vb primer parcial
 
Codigo
CodigoCodigo
Codigo
 
Pooja Sharma , BCA Third Year
Pooja Sharma , BCA Third YearPooja Sharma , BCA Third Year
Pooja Sharma , BCA Third Year
 
Kajal Gaharwal , BCA Third Year
Kajal Gaharwal , BCA Third YearKajal Gaharwal , BCA Third Year
Kajal Gaharwal , BCA Third Year
 
Sistema de ventas
Sistema de ventasSistema de ventas
Sistema de ventas
 
MooseX::Datamodel - Barcelona Perl Workshop Lightning talk
MooseX::Datamodel - Barcelona Perl Workshop Lightning talkMooseX::Datamodel - Barcelona Perl Workshop Lightning talk
MooseX::Datamodel - Barcelona Perl Workshop Lightning talk
 
Puerto serialarduino
Puerto serialarduinoPuerto serialarduino
Puerto serialarduino
 
Muleesbobjecttojson
Muleesbobjecttojson Muleesbobjecttojson
Muleesbobjecttojson
 
Mule esb object_to_json
Mule esb object_to_jsonMule esb object_to_json
Mule esb object_to_json
 
Mule esb object_to_jackson_json
Mule esb object_to_jackson_jsonMule esb object_to_jackson_json
Mule esb object_to_jackson_json
 
Ravi Prakash Yadav , BCA Third Year
Ravi Prakash Yadav , BCA Third YearRavi Prakash Yadav , BCA Third Year
Ravi Prakash Yadav , BCA Third Year
 
Sachin Foujdar , BCA Third Year
Sachin Foujdar , BCA Third YearSachin Foujdar , BCA Third Year
Sachin Foujdar , BCA Third Year
 
Aplikasi rawat-inap-vbnet
Aplikasi rawat-inap-vbnetAplikasi rawat-inap-vbnet
Aplikasi rawat-inap-vbnet
 
Quanlycanbo
QuanlycanboQuanlycanbo
Quanlycanbo
 
Clojure introduction by Jason Basanese
Clojure introduction by Jason BasaneseClojure introduction by Jason Basanese
Clojure introduction by Jason Basanese
 

Viewers also liked

The flipped classroom
The flipped classroomThe flipped classroom
The flipped classroomCarola Torres
 
Marcapáginas Poeda 2011
Marcapáginas Poeda 2011Marcapáginas Poeda 2011
Marcapáginas Poeda 2011Poeda
 
Noticias de la semana del 4 al 9 de mayo
Noticias de la semana del 4 al 9 de mayoNoticias de la semana del 4 al 9 de mayo
Noticias de la semana del 4 al 9 de mayoCole Navalazarza
 
DeVry Senior Project Final
DeVry Senior Project FinalDeVry Senior Project Final
DeVry Senior Project FinalAnthony Noland
 
Academic university collaboration - a win win partnership, Douglas Maxwell PA...
Academic university collaboration - a win win partnership, Douglas Maxwell PA...Academic university collaboration - a win win partnership, Douglas Maxwell PA...
Academic university collaboration - a win win partnership, Douglas Maxwell PA...AlbaInnovationCentre
 
Mayo15 menu virgen de navalazarza
Mayo15 menu virgen de navalazarzaMayo15 menu virgen de navalazarza
Mayo15 menu virgen de navalazarzaCole Navalazarza
 
DRC INTERNSHIP PROJECT (1)
DRC INTERNSHIP PROJECT (1)DRC INTERNSHIP PROJECT (1)
DRC INTERNSHIP PROJECT (1)Monika Delfierro
 
Seminario 5 integral
Seminario 5 integralSeminario 5 integral
Seminario 5 integraligorcorso
 
Java arrays/ By : Salem_Adrugi
Java arrays/ By : Salem_AdrugiJava arrays/ By : Salem_Adrugi
Java arrays/ By : Salem_AdrugiSalem Adrugi
 
Investor Treaty Arbitration : General view
Investor Treaty Arbitration : General viewInvestor Treaty Arbitration : General view
Investor Treaty Arbitration : General viewHeba Hazzaa
 

Viewers also liked (19)

Hola soc adam silva
Hola soc adam silvaHola soc adam silva
Hola soc adam silva
 
The flipped classroom
The flipped classroomThe flipped classroom
The flipped classroom
 
Resume Logistics revised A
Resume Logistics revised AResume Logistics revised A
Resume Logistics revised A
 
Marcapáginas Poeda 2011
Marcapáginas Poeda 2011Marcapáginas Poeda 2011
Marcapáginas Poeda 2011
 
Max
MaxMax
Max
 
Noticias de la semana del 4 al 9 de mayo
Noticias de la semana del 4 al 9 de mayoNoticias de la semana del 4 al 9 de mayo
Noticias de la semana del 4 al 9 de mayo
 
Educador quem é
Educador quem éEducador quem é
Educador quem é
 
DeVry Senior Project Final
DeVry Senior Project FinalDeVry Senior Project Final
DeVry Senior Project Final
 
Academic university collaboration - a win win partnership, Douglas Maxwell PA...
Academic university collaboration - a win win partnership, Douglas Maxwell PA...Academic university collaboration - a win win partnership, Douglas Maxwell PA...
Academic university collaboration - a win win partnership, Douglas Maxwell PA...
 
Mayo15 menu virgen de navalazarza
Mayo15 menu virgen de navalazarzaMayo15 menu virgen de navalazarza
Mayo15 menu virgen de navalazarza
 
Buddhism
BuddhismBuddhism
Buddhism
 
Title and Contents LinkedIn
Title and Contents LinkedInTitle and Contents LinkedIn
Title and Contents LinkedIn
 
El rayo de satanas
El rayo de satanasEl rayo de satanas
El rayo de satanas
 
DRC INTERNSHIP PROJECT (1)
DRC INTERNSHIP PROJECT (1)DRC INTERNSHIP PROJECT (1)
DRC INTERNSHIP PROJECT (1)
 
Seminario 5 integral
Seminario 5 integralSeminario 5 integral
Seminario 5 integral
 
Scan and Activate
Scan and ActivateScan and Activate
Scan and Activate
 
The_Pioneer_161
The_Pioneer_161The_Pioneer_161
The_Pioneer_161
 
Java arrays/ By : Salem_Adrugi
Java arrays/ By : Salem_AdrugiJava arrays/ By : Salem_Adrugi
Java arrays/ By : Salem_Adrugi
 
Investor Treaty Arbitration : General view
Investor Treaty Arbitration : General viewInvestor Treaty Arbitration : General view
Investor Treaty Arbitration : General view
 

Similar to VB 6

Bhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third YearBhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third YearDezyneecole
 
Harendra Singh,BCA Third Year
Harendra Singh,BCA Third YearHarendra Singh,BCA Third Year
Harendra Singh,BCA Third Yeardezyneecole
 
Rakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third YearRakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third YearDezyneecole
 
Sudarshan Joshi , BCA Third Year
Sudarshan Joshi , BCA Third YearSudarshan Joshi , BCA Third Year
Sudarshan Joshi , BCA Third Yeardezyneecole
 
Mithlesh Singh Rawat , BCA Third Year
Mithlesh Singh Rawat , BCA Third YearMithlesh Singh Rawat , BCA Third Year
Mithlesh Singh Rawat , BCA Third Yeardezyneecole
 
Reshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third YearReshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third Yeardezyneecole
 
Kirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third YearKirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third Yeardezyneecole
 
Akshay Sharma , BCA Third Year
Akshay Sharma , BCA Third YearAkshay Sharma , BCA Third Year
Akshay Sharma , BCA Third YearDezyneecole
 
Gaurav Jatav , BCA Third Year
Gaurav Jatav , BCA Third YearGaurav Jatav , BCA Third Year
Gaurav Jatav , BCA Third YearDezyneecole
 
Introduction Big Data and Hadoop
Introduction Big Data and HadoopIntroduction Big Data and Hadoop
Introduction Big Data and Hadoop명신 김
 
Membuat aplikasi penjualan buku sederhana
Membuat aplikasi penjualan buku sederhanaMembuat aplikasi penjualan buku sederhana
Membuat aplikasi penjualan buku sederhanaYusman Kurniadi
 
Código Editor Net
Código Editor NetCódigo Editor Net
Código Editor Netcymbron
 
Kotlin Austin Droids April 14 2016
Kotlin Austin Droids April 14 2016Kotlin Austin Droids April 14 2016
Kotlin Austin Droids April 14 2016DesertJames
 
Internal DSLs
Internal DSLsInternal DSLs
Internal DSLszefhemel
 
Deepika Mittal , BCA Third Year
Deepika Mittal , BCA Third YearDeepika Mittal , BCA Third Year
Deepika Mittal , BCA Third Yeardezyneecole
 

Similar to VB 6 (20)

Bhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third YearBhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third Year
 
Harendra Singh,BCA Third Year
Harendra Singh,BCA Third YearHarendra Singh,BCA Third Year
Harendra Singh,BCA Third Year
 
Rakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third YearRakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third Year
 
Sudarshan Joshi , BCA Third Year
Sudarshan Joshi , BCA Third YearSudarshan Joshi , BCA Third Year
Sudarshan Joshi , BCA Third Year
 
Mithlesh Singh Rawat , BCA Third Year
Mithlesh Singh Rawat , BCA Third YearMithlesh Singh Rawat , BCA Third Year
Mithlesh Singh Rawat , BCA Third Year
 
Reshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third YearReshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third Year
 
Kirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third YearKirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third Year
 
Akshay Sharma , BCA Third Year
Akshay Sharma , BCA Third YearAkshay Sharma , BCA Third Year
Akshay Sharma , BCA Third Year
 
Colegio municipal
Colegio municipalColegio municipal
Colegio municipal
 
Gaurav Jatav , BCA Third Year
Gaurav Jatav , BCA Third YearGaurav Jatav , BCA Third Year
Gaurav Jatav , BCA Third Year
 
Introduction Big Data and Hadoop
Introduction Big Data and HadoopIntroduction Big Data and Hadoop
Introduction Big Data and Hadoop
 
Ficha tecnica
Ficha tecnicaFicha tecnica
Ficha tecnica
 
Membuat aplikasi penjualan buku sederhana
Membuat aplikasi penjualan buku sederhanaMembuat aplikasi penjualan buku sederhana
Membuat aplikasi penjualan buku sederhana
 
Código Editor Net
Código Editor NetCódigo Editor Net
Código Editor Net
 
Kotlin Austin Droids April 14 2016
Kotlin Austin Droids April 14 2016Kotlin Austin Droids April 14 2016
Kotlin Austin Droids April 14 2016
 
yazılı
yazılıyazılı
yazılı
 
Internal DSLs
Internal DSLsInternal DSLs
Internal DSLs
 
Calculator code
Calculator codeCalculator code
Calculator code
 
Vp lecture 12 ararat
Vp lecture 12 araratVp lecture 12 ararat
Vp lecture 12 ararat
 
Deepika Mittal , BCA Third Year
Deepika Mittal , BCA Third YearDeepika Mittal , BCA Third Year
Deepika Mittal , BCA Third Year
 

Recently uploaded

Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyFrank van der Linden
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsMehedi Hasan Shohan
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
buds n tech IT solutions
buds n  tech IT                solutionsbuds n  tech IT                solutions
buds n tech IT solutionsmonugehlot87
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Andreas Granig
 
What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?Watsoo Telematics
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfPower Karaoke
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 

Recently uploaded (20)

Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The Ugly
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software Solutions
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
buds n tech IT solutions
buds n  tech IT                solutionsbuds n  tech IT                solutions
buds n tech IT solutions
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
 
What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 

VB 6

  • 1. 1. Form Konversi Bilangan ‘Biner,Desima,Oktal,Hexadesimal’ OptionExplicit Private SubCommand2_Click() Text1.Text= "" Text2.Text= "" End Sub Private SubCommand3_Click() End End Sub Private SubCommand1_Click() If Option2.ValueAndOption5.Value ThenText2.Text=BinToDes(Text1.Text) If Option2.ValueAndOption6.Value ThenText2.Text=Text1.Text If Option2.ValueAndOption7.Value ThenText2.Text=BinToOk(Text1.Text) If Option2.ValueAndOption8.Value ThenText2.Text=BinToHex(Text1.Text) If Option1.ValueAndOption6.Value ThenText2.Text=DesToBin(Text1.Text) If Option1.ValueAndOption5.Value ThenText2.Text=Text1.Text If Option1.ValueAndOption7.Value ThenText2.Text=DesToOk(Text1.Text) If Option1.ValueAndOption8.Value ThenText2.Text=DesToHex(Text1.Text) If Option3.ValueAndOption6.Value ThenText2.Text=OkToBin(Text1.Text) If Option3.ValueAndOption8.Value ThenText2.Text=OkToHex(Text1.Text) If Option3.ValueAndOption5.Value ThenText2.Text=OkToDes(Text1.Text) If Option3.ValueAndOption7.Value ThenText2.Text=Text1.Text
  • 2. If Option4.ValueAndOption6.Value ThenText2.Text=HexToBin(Text1.Text) If Option4.ValueAndOption5.Value ThenText2.Text=HexToDes(Text1.Text) If Option4.ValueAndOption7.Value ThenText2.Text=HexToOk(Text1.Text) If Option4.ValueAndOption8.Value ThenText2.Text=Text1.Text WithText1 .SelStart= 0 .SelLength=Len(Text1.Text) End With End Sub PublicFunction BinToDes(ByVal NBinerAsString) AsLong DimA As Integer DimB AsLong DimNilai AsLong OnError GoTo ErrorHandler B = 1 For A = Len(NBiner) To1 Step -1 If Mid(NBiner,A,1) = "1" ThenNilai =Nilai + B B = B * 2 Next BinToDes= Nilai ExitFunction ErrorHandler: BinToDes= 0 End Function PublicFunctionDesToBin(ByVal NDesimal AsLong) AsString DimC As Byte DimD AsLong DimNilai AsString OnError GoTo ErrorHandler D = (2 ^ 31) - 1 While D> 0 If NDesimal - D>= 0 Then NDesimal =NDesimal - D Nilai =Nilai & "1" Else If Val(Nilai) >0 Then Nilai =Nilai &"0" End If D = D / 2 Wend DesToBin= Nilai ExitFunction
  • 3. ErrorHandler: DesToBin= 0 End Function PublicFunctionDesToHex(ByVal NDesimal AsLong) AsString DesToHex =Hex(NDesimal) End Function PublicFunctionHexToDes(ByVal NHexaAsString) AsLong DimE As Integer DimNilai As Long DimF As Long DimCharNilai AsByte OnError GoTo ErrorHandler For E = Len(NHexa)To1 Step -1 SelectCase Mid(NHexa,E,1) Case "0" To "9": CharNilai = CInt(Mid(NHexa,E,1)) Case Else:CharNilai =Asc(Mid(NHexa,E,1)) - 55 End Select Nilai = Nilai +((16 ^ F) * CharNilai) F = F + 1 NextE HexToDes=Nilai ExitFunction ErrorHandler: HexToDes=0 End Function PublicFunctionDesToOk(ByVal NDesimalAsLong) AsString DesToOk= Oct(NDesimal) End Function PublicFunction OkToDes(ByVal NOktal AsString) AsLong DimG AsInteger DimH As Long DimNilai AsLong OnError GoTo ErrorHandler For G = Len(NOktal)To1 Step -1 Nilai = Nilai +(8 ^ H) * CInt(Mid(NOktal,G,1)) H = H + 1 NextG OkToDes= Nilai ExitFunction ErrorHandler: OkToDes= 0 End Function
  • 4. PublicFunctionBinToOk(ByVal binAsLong) AsString BinToOk= DesToOk(BinToDes(bin)) End Function PublicFunctionBinToHex(ByVal NBinerAsLong) AsString BinToHex = DesToHex(BinToDes(NBiner)) End Function PublicFunctionOkToBin(ByVal NOktal AsDouble) AsString OkToBin= DesToBin(OkToDes(NOktal)) End Function PublicFunctionOkToHex(ByVal NOktalAsDouble) AsString OkToHex = DesToHex(OkToDes(NOktal)) End Function PublicFunctionHexToBin(ByVal NHexaAsString) AsString HexToBin= DesToBin(HexToDes(NHexa)) End Function ' PublicFunctionHexToOk(ByVal NHexaAsString) AsDouble HexToOk= DesToOk(HexToDes(NHexa)) End Function Private Sub Form_Load() Move (Screen.Width - Me.Width) /2,(Screen.Height - Me.Height) /2 Text1.Text="" Text2.Text="" End Sub 2. Form Konversi Suhu Private Subrumus() If Option1.Value =True And Option4.Value =True Then Text1.Text=Text2.Text ElseIf Option1.Value =True AndOption5.Value=True Then Text2.Text=Val(Text1.Text) *4 / 5 ElseIf Option1.Value =True AndOption6.Value=True Then Text2.Text=(Val(Text1.Text) *9 / 5) + 32 End If If Option2.Value =True And Option5.Value =True Then Text1.Text=Text2.Text ElseIf Option2.Value =True AndOption4.Value=True Then Text2.Text=Val(Text1.Text) *5 / 4 ElseIf Option2.Value =True AndOption6.Value=True Then
  • 5. Text2.Text=(9 / 4 * Val(Text1.Text)) +32 End If If Option3.Value =True And Option6.Value =True Then Text1.Text=Text2.Text ElseIf Option3.Value =True AndOption5.Value=True Then Text2.Text=5 / 9 * (Val(Text1.Text) - 32) ElseIf Option3.Value =True AndOption4.Value=True Then Text2.Text=4 / 9 * (Val(Text1.Text) - 32) End If End Sub Private SubCommand1_Click() End End Sub Private SubOption1_Click() Call rumus End Sub Private SubOption2_Click() Call rumus End Sub Private SubOption3_Click() Call rumus End Sub Private SubOption4_Click() Call rumus End Sub Private SubOption5_Click() Call rumus End Sub Private SubOption6_Click() Call rumus End Sub Private Sub Text1_Change() Call rumus End Sub
  • 6. 3. Form Menghitung Luas Private SubCommand1_Click() Dim luasAsDouble luas= Val(Text1.Text) *Val(Text2.Text) /2 ' Luas Segitiga Text3.Text= luas End Sub Private SubCommand2_Click() Text1.Text= “” Text2.Text= “” Text3.Text= “” End Sub Private SubCommand3_Click() Dim phi,luasAsDouble ' Luas Lingkaran phi = 22 / 7 luas= phi * (Text4.Text*Text4.Text) Text5.Text= luas End Sub Private Sub Command4_Click() Text4.Text= “” Text5.Text= “” End Sub Private SubCommand5_Click() Text8.Text= Val(Text6.Text)*2 ' Luas Persegi End Sub Private SubCommand6_Click() Text8.Text= “” Text6.Text= “” End Sub Private SubCommand7_Click() Text10.Text= Val(Text7.Text) *Val(Text9.Text) 'Luas Persegi Panjang End Sub Private SubCommand8_Click() Text10.Text= “” Text7.Text= “” Text9.Text= “” End Sub