Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Basic4ppc Wishlist
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Basic4ppc Wishlist Missing any feature?


Recordset or equivalent Implementation for database manipulation


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-30-2007, 02:00 AM
Junior Member
 
Join Date: Aug 2007
Location: Australia
Posts: 19
Default Recordset or equivalent Implementation for database manipulation

Hi,

I've been looking at Basic4PPC in the last week and looks fairly good for creating applications with a quick turn around time.

The one piece that I haven't been able to find is a recordset or equivalent to simplify database record manipulation. (move first, move next, move previous, and move last). Sure I can go off and write something which simulates it, but before I go off an do that unit of work wanted to see if it was on anybody's radar.

Thoughts?

Cheers.

M
Reply With Quote
  #2 (permalink)  
Old 08-30-2007, 02:33 AM
Junior Member
 
Join Date: Apr 2007
Location: Qld, Australia
Posts: 42
Default

Code:
	' move to the previous bet in the table	
	BetRow = (BetRow+tblBet.RowCount-1) Mod tblBet.RowCount

	' move to the next Bet in the Table
	BetRow = (BetRow+1) Mod tblBet.RowCount
I used this in my FlatBet Program which can be seen here

Flat Bet Investment
Reply With Quote
  #3 (permalink)  
Old 08-30-2007, 03:40 AM
Junior Member
 
Join Date: Aug 2007
Location: Australia
Posts: 19
Default

Hi,

I was more thinking having a sqllite backend with 100s or maybe 1000s of records, where you don't really want to burn a whole array table keeping tabs on things.

Cheers.

M
Reply With Quote
  #4 (permalink)  
Old 08-30-2007, 08:00 AM
Junior Member
 
Join Date: Apr 2007
Location: Qld, Australia
Posts: 42
Default

I have looked through the sqlite docs and have not found those functions avail.

I guess the way to do it is to Create Index and use the Index to move through the records.
Reply With Quote
  #5 (permalink)  
Old 08-30-2007, 08:23 AM
Junior Member
 
Join Date: Aug 2007
Location: Australia
Posts: 19
Default

Hi,

Its fairly straight forward to do with sql statements (assuming you have designed your sql tables properly and have created the right indexes with your primary key and whatever sort order you are wanting to go through the database - you need an ability to uniquely identify each row, that is the big gotcha). I've seen it done on other database engines - as everything I've read about sqllite's sql implementation there is no reason to suggest that it won't work in that engine either - like I said a bit of code to make it happen.

Cheers.

M
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 On
Pingbacks are On
Refbacks are On

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
SQLite implementation question glook Questions & Help Needed 4 10-18-2007 10:33 AM
Runtime controls manipulation Erel Tutorials 0 09-26-2007 02:18 PM
How to convert an Access database to a sqlite database Peter Code Samples & Tips 5 07-24-2007 04:20 PM
Runtime control manipulation Erel Code Samples & Tips 6 05-11-2007 02:19 PM


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


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0