Skip to content

LIFE designer's BLOG

인생을 설계하는 프로그래머의 블로그

VB.net 에서 ADOCE.net 이용하기

Posted on 2006년 7월 20일 By kim7463@gmail.com VB.net 에서 ADOCE.net 이용하기에 댓글 없음

‘=============================선언부
   Public cnDataFile As InTheHand.AdoceNet.Connection
   Friend rsTables As InTheHand.AdoceNet.Recordset
‘============================= adoce3.1이 깔려있는지 확인
       Try
           cnDataFile = New InTheHand.AdoceNet.Connection
       Catch ex As TypeLoadException
           MessageBox.Show(“Error: ADOCE 3.1 is not installed on your device.”)
           ‘close the application
           Application.Exit()
       End Try

‘=================================DB가 열려있으면 닫아주는 부분
       ‘if the connection is open, close it first
       If cnDataFile.State = ConnectionState.Open Then
           cnDataFile.Close()
       End If

‘=================================DB경로 설정하여 Open
       cnDataFile.Open(“Program FilesSmartDeviceApplication3address.cdb”)

‘=================================Open recordset
       ‘open recordset to MSysTables table
       rsTables = New InTheHand.AdoceNet.Recordset
       rsTables.Open(ComboBox3.SelectedItem, cnDataFile)

       ‘loop while there are still records
       While Not rsTables.EOF

           If [조건] Then
               [어쩌구 저쩌구]
           End If

           rsTables.MoveNext()
       End While

‘=============================== Close recordset
       rsTables.Close()
       cnDataFile.Close()

미분류

글 내비게이션

Previous Post: 포켓 PC 유용하게 사용하는데 필요한 8가지 팁
Next Post: Where’s my app.path in vb.net

답글 남기기 응답 취소

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다

최신 글

  • [Vue3] use webpack proxy
  • PCF7953 Read / Write
  • BMW F body Key FOB 케이스 교체
  • BMW
  • Dirty Life
  • Engineer
  • LIFE
  • Software
  • vue3
  • 미분류

Copyright © 2022 LIFE designer's BLOG.

Powered by PressBook WordPress theme