SQLite db connection error

Discussion in 'Questions (Windows Mobile)' started by jotis, Jun 23, 2009.

  1. jotis

    jotis Member

    Hi I am beginner to B4ppc,
    Here I tried to program a db connection as per the sample sql program in the B4ppc tutorial.
    But I get error message.

    This is the code I used

    Sub Globals
    'Declare the global variables here.
    End Sub

    Sub App_Start
    Form1.Show
    Con.New1
    Cmd.New1("",con.Value)
    Con.Open("Data Source = " & AppPath & "\Northwind.sl3") 'Opens a connection with the database.
    End Sub


    ERROR is given below.

    Error compiling program
    Error description: con is not known control or object
    Occurred on line : 8
    Con.New1



    How can I fix this error ? Please help me.

    I got a tutorial
    ãó çãù 1
    I think it will help me

    Special Thanks to Erel

    Regards
    Jotis
     
    Last edited: Jun 23, 2009
  2. Erel

    Erel Administrator Staff Member Licensed User

    Welcome to Basic4ppc :)
    You need to first add an object named Con.
    See this tutorial for more information: Table of contents
     
  3. jotis

    jotis Member

    Thank you very much...

    Rgds
    Jotis:sign0060:
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice