Laman

Jumat, 13 Desember 2019

Binding Object di Visual Basic 6

Untuk menambahkan object menjadi variable object dalam source code Visual Basic 6, lakukan proses binding object. Binding object dalam Visual Basic 6 ada dua, yaitu: Early binding dan Late Binding.
Contoh early binding:
Dim Koneksi As New ADODB.Connection
Dim rs As ADODB.Recordset


Contoh early binding:
Dim Koneksi As New ADODB.Connection
Dim rs As ADODB.Recordset
Set Koneksi = New ADODB.Connection
Set rs = New ADODB.Recordset


Contoh late binding:
Dim conn As Object
Set conn = CreateObject("ADODB.Connection")

Tidak ada komentar:

Posting Komentar