Easiest database access?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
BattleWolf
Posts: 5
Joined: Wed Oct 21, 2009 3:53 am

Easiest database access?

Post by BattleWolf » Wed Oct 21, 2009 7:48 pm

Hi,

Not sure where this needs to go - getting started or databases. But it is a newbie question so here it is...

I have been playing around with Rev for a little bit to see if it could replace MSAccess for me. So far so good, but I now have the following question: what is the easiest (not necessarily the most powerful, just quickest and easiest) way to edit data in a database without having to resort to arrays/cursors/etc?

Is there a control - even if not part of standard Rev but a third party add-on - that will create a "add/delete/edit records" table-like structure which I can place onto a card and where I write no/minimal scripting (something that MSAccess can do)?

Thanks!

vamp07
Posts: 21
Joined: Mon Apr 10, 2006 2:12 pm

Post by vamp07 » Wed Oct 21, 2009 11:13 pm


mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Post by mwieder » Thu Oct 22, 2009 12:26 am

You'll also want to look into Quartam Reports as a third-party add-on. Keep in mind that MSAccess is designed to do one thing only, and so it has database niceties that you shouldn't expect out of the box in a general-purpose development environment like rev or Visual Basic or whatever else.

hliljegren
Posts: 111
Joined: Sun Aug 23, 2009 7:48 am
Contact:

Post by hliljegren » Thu Oct 22, 2009 7:36 am

If the size of your data is not to big you might not need to use a database at all! Add your fields and make a background group. In a test I made, searching in 1000 cards is almost a zero-time search. (But I still mostly use DBs anyway ;)

user#606
Posts: 217
Joined: Sun Jan 27, 2008 12:25 pm
Contact:

Simple Database - possible solution

Post by user#606 » Thu Oct 22, 2009 10:07 am

Hi Battlewolf,
I use tables a lot in the software I write, the basic table, not datagrid.
There is a convenient method to add to the table, edit the table save the data and restore it. If you would like to see a stack and the code, please reply to ajperks@tiscali.co.uk and I will send it to you.
NB this is a junk address, so spammers, waste your time!

Post Reply