Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

SQlite problem

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-04-2008, 06:52 AM
Basic4ppc Veteran
 
Join Date: Sep 2008
Location: Brisbane, Australia
Posts: 317
Default SQlite problem

Hi ppl.

I don't know why my dates are yyyy-mm-dd in SQLite Expert and show as 2008-10-04 but when I read the records into a table I'm getting 39725 as the value.

Can anyone help?

here is the entire code

Sub Globals
'Declare the global variables here.

End Sub

Sub App_Start
DateFormat("yyyy-mm-dd")
con.New1
cmd.New1("",con.Value)
con.Open("Data Source = " & AppPath & "\TaxiMobile.db3")
frmMain.Show
End Sub

Sub btnShifts_Click
frmShifts.Show
End Sub

Sub frmShifts_Show
cmd.CommandText="Select * From Shifts Order By ShiftDate"
cmd.ExecuteTable("tblShifts",0)
End Sub

I have a reference to SQLDevice.dll for the device and SQLDesktop.dll for the desktop.

Any ideas?

regards, Ricky

P.S this happens when I add a new field into the table using SQLite Expert

P.P.S instead of using SQLite Expert I made the changes using SQLMaestro and it works fine so it seems SQLite Expert has issues

Last edited by Ricky D : 10-04-2008 at 07:02 AM. Reason: this happens when I add a new field to the database
Reply With Quote
  #2 (permalink)  
Old 10-04-2008, 08:35 AM
Basic4ppc Veteran
 
Join Date: Sep 2008
Location: Brisbane, Australia
Posts: 317
Default that won't work

because I'm reading the db table into a bp4ppc table using cmd.ExecuteTable("tblShifts",0) - you have no say in how the command formats anything.

regards, Ricky
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding SQLite problem mozaharul Questions (Windows Mobile) 0 04-02-2008 09:28 AM
Problem Converting CSV to SQLite tcgoh Questions (Windows Mobile) 5 11-01-2007 02:50 AM
SQLite Update Problem david Questions (Windows Mobile) 1 10-10-2007 11:22 AM
Another sqlite problem! giannimaione Questions (Windows Mobile) 5 05-13-2007 07:25 AM
Problem mit SQLite und CheckBox Fontanus German Forum 6 05-06-2007 03:03 PM


All times are GMT. The time now is 02:36 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0