'=============================선언부
   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 Files\SmartDeviceApplication3\address.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()

2006/07/20 02:23 2006/07/20 02:23
Posted by 인생을 설계하는 프로그래머

트랙백 보낼 주소 : http://love-02.com/trackback/31


BLOG main image
by 인생을 설계하는 프로그래머

카테고리

Life Designer (139)
컴퓨터공학박사 (80)
세상 (24)
건강한 삶 (8)
I Love Korea (2)
海兵隊 (3)
Common Sense! (4)
Game is Life! (12)
Life of Digital (4)
추억으로의 여행 (0)
애마 카돌이! (1)
세상속으로! (1)

글 보관함

달력

«   2010/09   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30