Which is the best SBASIC setup in order to start programming a QL custom Database application ?
Ex. Pointer Enviroment, Compiler, Toolkit, DBAS (?), Suqcess (?), DB API, ...

Thanks in advance.
M.
What do you mean by programming a Database?genetika wrote:Hi.
Which is the best SBASIC setup in order to start programming a QL custom Database application ?
Ex. Pointer Enviroment, Compiler, Toolkit, DBAS (?), Suqcess (?), DB API, ...
NormanDunbar wrote:The answer has to be "it depends" and it does depend on what the database is intended to hold.
Archive is ok, but has some problems if files are not closed correctly and rumours abound of corrupted databases files for other reasons. I've had a few in my time with nothing more sinister than the freezer starting up while I was writing data back to the database. Most annoying, but hey, backups!
I've never used Datadesign so I cannot comment.
DBAS, I have used. It can be called from SuperBASIC, C68 and I think, assembly. I quite like it, although it's been a while since I last had to write something using it. Unless things have changed, the Quanta Library Guide was written in C68 using DBAS as the database back end, by me, some years (decades!) ago. It's reasonably fast and I never had a corruption, freezer or otherwise.
Given the ability these days to set file positions using some of the various toolkits around, Turbo, DJToolkit, TK2 etc, you could easily write a database system using simple files and if the records were all the same size, you can easily get random access to various records using the record number -1 multiplied by the record length to get the starting position in the file. An index on other "columns" in the record could be created simply by holding the key field(s) and a record number in another database table (or even database) - lookup the index fields, get the record number(s) and read the required data from the database.
These flat files can be accessed in SuperBASIC, C68, Assembly and probably a myriad of other languages available for the QL.
If you drop a few hints about the intended purpose, and proposed data structures or layout, we'll be glad to offer further assistance.
Cheers,
Norm.
Both DATAdesign and DBAS can be programmed in SBasic.genetika wrote:Hi.
I would like to create a personal software to manage a club
- a software that allows the storage and search of the members' data and related payments, as well as the club management.
A test app, not a production app, only to try my SBASIC abilities.