Thursday, October 3, 2019

Microsoft Visual Basic 6 To Display Record in a Web Browser

Here is a sample program that is being provided by my close friend, business partner and fellow software engineer Sir Larry Dave Emol. He created this program using Microsoft Visual Basic 6 to display the record in a web browser.

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.



Add this control to your Visual Basic 6



Program Listing

FORM CODES

Sub LOAD_DATA()

    Dim i       As Long
 
   Call SQLDB(Me.AdoCon, "select distinct Namex from tblInfo Order by Namex")
 
      Me.WebBrowser1.Navigate2 "About:Blank"
      Do While Me.WebBrowser1.ReadyState <> READYSTATE_COMPLETE
        DoEvents
    Loop
    With WebBrowser1.Document

        .Write ("<button>Save</button>")
        .Write ("<HTML><head></head><style type='text/css'> body,td{font-family: Tahoma;} body,td{font-size:20px;} button{padding:30px; Background-color: blue; Margin: 10px; Color: #fff;}</style>")
        .Write ("<BODY Scroll=Yes oncontextmenu='return false';>")
        .Write ("<TABLE WIDTH=100% BORDER=1 BORDERCOLOR=#215DC6 CELLPADDING=1 CELLSPACING=1>")
        .Write ("<thead>")
        .Write ("<TR>")
        .Write ("<TH BGCOLOR=pink><B>Namex </B></TH>")
        .Write ("</TR>")
        .Write ("</thead>")
        Do While AdoCon.Recordset.EOF <> True
        i = i + 1
        .Write ("<TR>")
        .Write ("<TD bgcolor=powderblue><FONT FACE=tahoma SIZE=5>" & AdoCon.Recordset.Fields("Namex").Value & "</TD>")
        .Write ("</TR>")
            AdoCon.Recordset.MoveNext
        Loop
     
 
        .Write ("</TABLE>")
        .Write ("</BODY>")
        .Write ("</HTML>")
        WebBrowser1.Document.Script.Document.Clear
        WebBrowser1.Document.Script.Document.Close
    End With
 

             
End Sub

Private Sub Form_Activate()
Call LOAD_DATA
End Sub

MODULE CODES(DB Connection)

Option Explicit


Public Function AppDir() As String
    If Right$(App.Path, 1) = "\" Then
        AppDir = App.Path
    Else
        AppDir = App.Path & "\"
    End If
End Function

Public Sub SQLDB(adoObj As Adodc, AdoRec As String) 'for SQL Recordsource

    'Loads the database and provides the database password
    adoObj.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & AppDir & "Tutorial.mdb;Persist Security Info=False;Jet OLEDB:Database Password = "
 
    'Sets the command type to Table
    adoObj.CommandType = adCmdText
 
    'Loads the source table of info
    adoObj.RecordSource = AdoRec

    'refreshes database status
     adoObj.Refresh
End Sub






Picture Slider in Microsoft Visual Basic 6

Here is a sample program that is being provided by my close friend, business partner and fellow software engineer Sir Larry Dave Emol. He created this program using Microsoft Visual Basic 6 Picture Slider.

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

Private Sub Form_Load()
imgID = 1
End Sub

Private Sub Timer1_Timer()
On Error Resume Next
Me.Image1.Picture = LoadPicture(App.Path & "\images\" & imgID & ".jpg")
imgID = imgID + 1
Me.Label1.Caption = Me.Caption & imgID
If imgID > 5 Then
        imgID = 0
End If
End Sub



Loop Record in a ComboBox in Visual Basic and MS Access

Here is a sample program that is being provided by my close friend, business partner and fellow software engineer Sir Larry Dave Emol. He created this program using Microsoft Visual Basic 6 and Microsoft Access Loop to Record in a ComboBox.

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

FORM CODES

Private Sub Form_Load()
Call SQLDB(Me.AdoCon, "select * from tblInfo Order by LASTNAME")
If Not (Me.AdoCon.Recordset.EOF And Me.AdoCon.Recordset.BOF) Then
Combo1.Clear
Do While Not Me.AdoCon.Recordset.EOF
    Combo1.AddItem Me.AdoCon.Recordset.Fields(1).Value
    Me.AdoCon.Recordset.MoveNext
    Combo1.ListIndex = 0
    Loop
 End If
End Sub

MODULE CODES(DB Connection)

Option Explicit

Public Function AppDir() As String
    If Right$(App.Path, 1) = "\" Then
        AppDir = App.Path
    Else
        AppDir = App.Path & "\"
    End If
End Function

Public Sub SQLDB(adoObj As Adodc, AdoRec As String) 'for SQL Recordsource

    'Loads the database and provides the database password
    adoObj.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & AppDir & "Tutorial.mdb;Persist Security Info=False;Jet OLEDB:Database Password = "
   
    'Sets the command type to Table
    adoObj.CommandType = adCmdText
   
    'Loads the source table of info
    adoObj.RecordSource = AdoRec

    'refreshes database status
     adoObj.Refresh
End Sub



Get Year and Quarter Using Visual Basic 6

Here is a sample program that is being provided by my close friend, business partner and fellow software engineer Sir Larry Dave Emol. He created this program using Microsoft Visual Basic 6 to Get Year and Quarter.

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

Private Sub Form_Activate()
Me.lblY.Caption = Me.MonthView1.Year
Me.MonthView1.Value = Date
Me.Caption = Me.MonthView1.Month
If Me.Caption = "1" Or Me.Caption = "2" Or Me.Caption = "3" Then
    Me.lblQ.Caption = "1st Quarter"
ElseIf Me.Caption = "4" Or Me.Caption = "5" Or Me.Caption = "6" Then
    Me.lblQ.Caption = "2nd Quarter"
ElseIf Me.Caption = "7" Or Me.Caption = "8" Or Me.Caption = "9" Then
    Me.lblQ.Caption = "3rd Quarter"
ElseIf Me.Caption = "10" Or Me.Caption = "11" Or Me.Caption = "12" Then
    Me.lblQ.Caption = "4th Quarter"
End If
End Sub


DOWNLOAD SOURCE CODE HERE

Addition of Two Numbers in Golang Using Web Forms

A simple addition of two numbers in golang using web forms that I wrote while learning web development in Go programming language.

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.



Program Listing

index.tmpl

{{ define "Index" }}
<!DOCTYPE html>
<html lang="en-US">
    <head>
        <title>Add</title>
        <meta charset="UTF-8" />
    </head>
<body>
    <form method="POST" action="/Add">
     <br>
     <h2>  Addition of Two Numbers in Golang </h2>
     <br><br>
     First Value <input type="text" name="FNumber" value="{{.FNumber}}"/><br />
     Second Value  <input type="text" name="SNumber" value="{{.SNumber }}"/><br /><br>
     Total Sum  <input type="text" name="Total" value="{{ .Total }}"/><br />
      <br>
      <input type="submit" value="Compute" />
        &nbsp;
        <input type="reset" value="Reset">
       
    </form><br />   
</body>
</html>     
{{ end }}


add.go

package main 


import( "strconv"
"net/http"
"text/template"
)

type Sum struct {
FNumber string
SNumber string
Total string
}

var tmpl = template.Must(template.ParseGlob("templates/*"))

func Add(w http.ResponseWriter, r *http.Request) {
r.ParseForm()                     
    fNumber, err := strconv.Atoi(r.Form.Get("FNumber"))
    if err != nil {
    panic(err)
}
    sNumber, err := strconv.Atoi(r.Form.Get("SNumber"))
    if err != nil {
    panic(err)
}

    total := fNumber + sNumber

    sum := Sum{}
    sum.FNumber = r.Form.Get("FNumber")
    sum.SNumber = r.Form.Get("SNumber")
    sum.Total = strconv.Itoa(total)
    tmpl.ExecuteTemplate(w, "Index", sum)
}

func Index(w http.ResponseWriter, r *http.Request) {
    tmpl.ExecuteTemplate(w, "Index", Sum{})
}

func main() {
  http.HandleFunc("/", Index)
  http.HandleFunc("/Add", Add)
    http.ListenAndServe(":8080", nil)

}


Select/Display Distinct Records in a ComboBox in Visual Basic 6

Here is a sample program that is being provided by my close friend, business partner and fellow software engineer Sir Larry Dave Emol. He created this program using Microsoft Visual Basic 6 and Microsoft Access to Select/Display Distinct Records in a ComboBox in VB6

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

FORM CODES
Private Sub Form_Load()
Call SQLDB(Me.AdoCon, "select distinct Namex from tblInfo Order by Namex")
If Not (Me.AdoCon.Recordset.EOF And Me.AdoCon.Recordset.BOF) Then
Combo1.Clear
Do While Not Me.AdoCon.Recordset.EOF
    Combo1.AddItem Me.AdoCon.Recordset.Fields("Namex").Value
    Me.AdoCon.Recordset.MoveNext
    Combo1.ListIndex = 0
    Loop
 End If
End Sub

MODULE CODES(DB Connection)

Option Explicit

Public Function AppDir() As String
    If Right$(App.Path, 1) = "\" Then
        AppDir = App.Path
    Else
        AppDir = App.Path & "\"
    End If
End Function

Public Sub SQLDB(adoObj As Adodc, AdoRec As String) 'for SQL Recordsource

    'Loads the database and provides the database password
    adoObj.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & AppDir & "Tutorial.mdb;Persist Security Info=False;Jet OLEDB:Database Password = "
 
    'Sets the command type to Table
    adoObj.CommandType = adCmdText
 
    'Loads the source table of info
    adoObj.RecordSource = AdoRec

    'refreshes database status
     adoObj.Refresh
End Sub




My New Book Beginners Guide To Computer Programming With Logic Formulation Using C Language

In this article, I would like to share with you guys my new book that is already published the title of the book is  "Beginners Guide To Computer Programming With Logic Formulation Using C Language" that is already published exclusively by Mindshapers Inc. Metro Manila.






For my book orders, you may visit my publishers at the following web address https://www.mindshaperspublishing.com/

You can call them at the following numbers (02) 254-6160  and  (02) 527-6489 in Metro Manila.

Their office address of Mindshapers Inc is 

Rm 108 ICP Bldg. Recoletos Street, Intramuros, Manila


Their email address is  mindshapersco@yahoo.com


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.

Thank you very much for the support.


Delete All Record in a database Table in Visual Basic 6


Here is a sample program that is being provided by my close friend, business partner and fellow software engineer Sir Larry Dave Emol. He created this program using Microsoft Visual Basic 6 and Microsoft Access to Delete All Record in a database Table in VB6. 

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

FORM CODES

Private Sub Command3_Click()
On Error Resume Next
Call dbConn
conn.Execute "DELETE FROM tblInfo"
MsgBox "All information has been successfully deleted!", vbInformation
Call SQLDB(Me.AdoCon, "Select * from tblInfo order by LASTNAME Desc")
Set Me.DataGrid1.DataSource = Me.AdoCon
End Sub


Private Sub Form_Activate()
On Error Resume Next
Call SQLDB(Me.AdoCon, "Select * from tblInfo order by LASTNAME Desc")
Set Me.DataGrid1.DataSource = Me.AdoCon
End Sub

MODULE CODES

Option Explicit

'variables for ADODB
Public conn As New ADODB.Connection
Public ctr As Integer


Public Function AppDir() As String
    If Right$(App.Path, 1) = "\" Then
        AppDir = App.Path
    Else
        AppDir = App.Path & "\"
    End If
End Function

Public Sub dbConn()
  Set conn = New ADODB.Connection
  conn.ConnectionString = strConn2
  conn.Open
End Sub

Public Function strConn2() As String
  strConn2 = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & AppDir & "Tutorial.mdb;Persist Security Info=False;Jet OLEDB:Database Password = "
End Function

Public Sub SQLDB(adoObj As Adodc, AdoRec As String) 'for SQL Recordsource

    'Loads the database and provides the database password
    adoObj.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & AppDir & "Tutorial.mdb;Persist Security Info=False;Jet OLEDB:Database Password = "
    
    'Sets the command type to Table
    adoObj.CommandType = adCmdText
    
    'Loads the source table of info
    adoObj.RecordSource = AdoRec

    'refreshes database status
     adoObj.Refresh
End Sub






Wednesday, October 2, 2019

Inches To Centimeter in Visual Foxpro

A simple program that I wrote using Microsoft Visual Foxpro by asking the user to give value in inches and then it will convert into centimeter equivalent.

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

Compute Button

feet = VAL(thisform.text1.Value)
comp_disp = feet * 2.54
thisform.label2.caption ="The centimeter equivalent is "
thisform.text2.Value= ROUND(comp_disp,2)

Clear

thisform.label2.caption =""
thisform.text2.Value= ""
thisform.text1.value=""
thisform.text1.SetFocus

Quit

thisform.Release