Page 7 of 10
Re: My First SQLite Project
Posted: Fri Sep 18, 2009 12:31 pm
by Rathinagiri
It is cumbersome because of non-existence of sql statements. It is easy to port a MySQL based application to SQLite.
Re: My First SQLite Project
Posted: Fri Sep 18, 2009 2:05 pm
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
Re: My First SQLite Project
Posted: Fri Sep 18, 2009 5:01 pm
by sudip
Hello Friends,
This is my first Sqlite real life project.
- MyExpenseSql.jpg (47.81 KiB) Viewed 11420 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
And download source code from
And please don't forget to send you comments like before.
With best regards.
Sudip
Re: My First SQLite Project
Posted: Sat Sep 19, 2009 2:35 am
by gvaronas
Hi Sudip, in the source file is missing <hfcl.ch>
Best Regards
GVS
Re: My First SQLite Project
Posted: Sat Sep 19, 2009 2:44 am
by sudip
Hello GVS,
Thanks for interest. Please download HFCL from
download/file.php?id=355
With best regards.
Sudip
Re: My First SQLite Project
Posted: Sat Sep 19, 2009 3:03 am
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
Re: My First SQLite Project
Posted: Sat Sep 19, 2009 3:11 am
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
Re: My First SQLite Project
Posted: Sat Sep 19, 2009 9:17 am
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
Re: My First SQLite Project
Posted: Wed Sep 23, 2009 7:34 am
by sudip
Hello All Friends,
I found some errors in Printing Report of MyExpense project.
I corrected them.
Please download:-
Souce Code:
Setup File:
Please send your comments.
With best regards.
Sudip
Re: My First SQLite Project
Posted: Wed Sep 23, 2009 8:40 am
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?