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 Data Sequence

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-28-2008, 07:20 PM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 312
Default Sqlite Data Sequence

Help(again!)

In a construction project (road, pipeline, railway, etc) you have what we call a horizontal alignment which defines the path that the project follows. Each point (node) where the direction of this path changes is defined by coordinates (Y & X). The coordinates defining this route (path) follow a fixed sequence.

Now, my problem is that if I amend one of these nodes (changing the coordinates), Sqlite puts the amended node at the end of the file, which I don't want.

If it is say node number 3 out of a total of 10 nodes, that I change, then it must say at position number 3 in the file and not add it at the end of the file.

Help!!!!!!!!

Thanks
Michael
Reply With Quote
  #2 (permalink)  
Old 07-29-2008, 08:30 AM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 173
Default

Dear Ceaser,

Couldn't you open the file sorted on the position? in which case the physical position in the file does not matter.

all the best / Björn
Reply With Quote
  #3 (permalink)  
Old 07-29-2008, 11:03 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

As BjornF wrote you should not assume that the raw data is saved in a specific order.
Instead use Order By to specify the required order:
Code:
"SELECT * FROM table1 WHERE ... ORDER BY SomeCol"
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
Data collection from devices to Desktop using SQLite mozaharul Questions (Windows Mobile) 3 04-03-2008 10:00 AM
GPS Satellites map and data derez Share Your Creations 2 01-29-2008 05:04 AM
The right SerialOnCom sequence Put Claude Questions (Windows Mobile) 2 01-11-2008 09:28 AM
Best data to work with GPS Put Claude Questions (Windows Mobile) 4 10-21-2007 08:58 PM
playing sounds in sequence... Cableguy Questions (Windows Mobile) 3 07-08-2007 09:00 PM


All times are GMT. The time now is 10:09 AM.


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