My First SQLite Project

You can share your experience with HMG. Share with some screenshots/project details so that others will also be benefited.

Moderator: Rathinagiri

User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: My First SQLite Project

Post by Rathinagiri »

It is cumbersome because of non-existence of sql statements. It is easy to port a MySQL based application to SQLite.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: My First SQLite Project

Post by sudip »

Yes, Rathi.
BTW, I finished Setup, automatic Import data from old dbfs, master setup entry with all validation (most of validations are done by Sqlite itself!!!)
Now, I shall do transaction entry, reports (Grid2Print will be suitable), Backup and Restore utilities.
Time to start programming again :)
Regards.
Sudip
With best regards,
Sudip
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: My First SQLite Project

Post by sudip »

Hello Friends,

This is my first Sqlite real life project.
MyExpenseSql.jpg
MyExpenseSql.jpg (47.81 KiB) Viewed 9308 times
This is an update of my old MyExpense project. So, if it is installed in old Folder, it will automatically add existing data from dbf to Sqlite tables. I also added Backup facility (but, not Restore due to some problem. I can't use SQLITE3_CLOSE() function)

Please install from
setup.zip
(1.04 MiB) Downloaded 773 times
And download source code from
MyExpenseSql.zip
(17.09 KiB) Downloaded 781 times
And please don't forget to send you comments like before.

With best regards.

Sudip
With best regards,
Sudip
gvaronas
Posts: 109
Joined: Wed Aug 06, 2008 5:21 pm

Re: My First SQLite Project

Post by gvaronas »

Hi Sudip, in the source file is missing <hfcl.ch>

Best Regards
GVS
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: My First SQLite Project

Post by sudip »

Hello GVS,

Thanks for interest. Please download HFCL from download/file.php?id=355

With best regards.

Sudip
With best regards,
Sudip
gvaronas
Posts: 109
Joined: Wed Aug 06, 2008 5:21 pm

Re: My First SQLite Project

Post by gvaronas »

Thanks Sudip.
Now I have this error:
Start...
Missing ".o" files: MYEXPENSESQL.O BACKREST.O TRANPRINT.O
TRANPRINT.prg(134) Error E0030 Syntax error: "syntax error at 'GRID'"
Finished With Errors.

The line 134 is:
PRINT GRID grid_1 OF frmTranPrint FONT "Arial" SIZE 12 ORIENTATION "P" ;
HEADERS {"Expense Report"+strHead3, strHead2} COLUMNSUM aSum SHOWWINDOW

Any help / Tip

TIA
BestRegards
GVS
gvaronas
Posts: 109
Joined: Wed Aug 06, 2008 5:21 pm

Re: My First SQLite Project

Post by gvaronas »

I've solved this with:

PRINT GRID grid_1 OF frmTranPrint FONT "Arial" SIZE 12 ORIENTATION "P" HEADERS {"Expense Report"+strHead3, strHead2} COLUMNSUM aSum SHOWWINDOW

making a single line by removing the semicolon

BestRegards
GVS
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: My First SQLite Project

Post by sudip »

Thanks a lot friend. :)

I used an excellent utility Grid2Print developed by S. Rathinagiri. I used HFCL for this utility.

With best regards.

Sudip
With best regards,
Sudip
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: My First SQLite Project

Post by sudip »

Hello All Friends,

I found some errors in Printing Report of MyExpense project.
I corrected them.

Please download:-
Souce Code:
MyExpenseSql.zip
(23.91 KiB) Downloaded 734 times
Setup File:
setup.zip
(1.04 MiB) Downloaded 706 times
Please send your comments.

With best regards.

Sudip
With best regards,
Sudip
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: My First SQLite Project

Post by mol »

Reading this topic, I've decided to try some work with sqlite with my small already working project.

I have a question: How to lock record in sqlite database in network environment?
Post Reply