Showing posts with label Civil Status Checker in Visual Basic 6. Show all posts
Showing posts with label Civil Status Checker in Visual Basic 6. Show all posts

Tuesday, October 1, 2019

Civil Status Checker in Visual Basic 6

A very simple program that I wrote using Microsoft Visual Basic 6 to ask the user to give a number and then the program will check if the given number of the user represents single, married, divorced or widowed civil status. Thus our program also asks the user if the user whats to continue to run the program or not.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.
My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.


My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.


My personal website is http://www.jakerpomperada.com.







Sample Program Output


Program Listing

' Civil status program in vb6
' Written by Mr. Jake R. Pomperada,MAED-IT
' Date : October 1, 2019
' Email : jakerpomperada@gmail.com


Private Sub Command1_Click()
Dim a As Integer
a = Val(Form1.Text1.Text)

If (a = 1) Then
    Msg = "The Result"
    Style = vbInformation
    disppaly = MsgBox("You are still Single.", Style, "The Result")
ElseIf (a = 2) Then
Msg = "The Result"
Style = vbInformation
disppaly = MsgBox("You are Married.", Style, "The Result")
ElseIf (a = 3) Then
Msg = "The Result"
Style = vbInformation
disppaly = MsgBox("You are Divorced.", Style, "The Result")
ElseIf (a = 4) Then
Msg = "The Result"
Style = vbInformation
disppaly = MsgBox("You are Widowed.", Style, "The Result")
Else
Msg = "The Result"
Style = vbInformation
disppaly = MsgBox("Invalid Civil Status.", Style, "The Result")
End If
End Sub


Private Sub Command2_Click()
 Form1.Text1.Text = ""
 Form1.Text1.SetFocus
End Sub

Private Sub Command3_Click()
Dim Msg, Style, Title, Help, Ctxt, Response, MyString
Msg = "Do you want to continue ?"    ' Define message.
Style = vbYesNo + vbInformation + vbDefaultButton2    ' Define buttons.
Title = "Quit Program"    ' Define title.
Help = "DEMO.HLP"    ' Define Help file.
Ctxt = 1000    ' Define topic context.
        ' Display message.
Response = MsgBox(Msg, Style, Title, Help, Ctxt)
If Response = vbYes Then    ' User chose Yes.
    Form1.Text1.Text = ""
    Form1.Text1.SetFocus
Else
    End
End If
End Sub