![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
On each key press (I presume the user is typing into a text box), create and execute a new sql query, like such:
"SELECT field1,field2,field3 FROM (your_table_name) WHERE field1 LIKE '" & textbox1.text & "%' " Be warned, this method can be slow, especially if you've got a lot of data. You might consider reading the contents of the database into a table, and extracting only the records matching your search - especially if the data won't be modified by the user. Gary
__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5 PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6 Last edited by willisgt : 02-17-2008 at 05:38 AM. |
|
||||
|
the error message reads so ;"Error Compiling Program . Error message : Error CS0012 : The type 'System.Data.Common.DBConnection' is defined in an assembly 'System.Data,Version=2.0.0.0, Culture=neutral,PublicKeyToken=b77a5c561934e089'.L ine Number=25 . Line:Com.New1("""",con.Value)" .
I have added System.data.SQLite.dll in both desktop and device(seperately as required) in components . I used here 'com' for command . I think this much can help you to understand my problem . |
|
||||
|
i have added the dll files as directed by you . After when tried to compile there is another error message :Error CS00234: The type or namespacename 'SQLite' does not exist in the namespace 'System.data" .(Are you missisng an assembly reference?) .what does it mean ? what to do ?
![]() |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Copy Record from one database to another database. | mozaharul | Questions & Help Needed | 0 | 07-15-2008 05:47 AM |
| 2 sql database | gjoisa | Questions & Help Needed | 1 | 07-01-2008 11:06 AM |
| about sql database | gjoisa | Questions & Help Needed | 5 | 05-16-2008 11:40 AM |
| UTF-8 Database | EdQas | Questions & Help Needed | 5 | 10-16-2007 06:11 PM |
| How to convert an Access database to a sqlite database | Peter | Code Samples & Tips | 5 | 07-24-2007 04:20 PM |