
Download: http://www.clicketyhome.com/purebasicdatabaseapp.zip
I appreciate any and all comments and suggestions for improvements.
[Microsoft driver ODBC]Data source not found and name of driver no specified
Getting Started:
The zip file contains a blank database called contacts.mdb. Drag this file to the location of your choice,
and then use the ODBC control panel to create a System DSN or a User DSN called dsContacts that
points to the database.
Hi, Kwai chang caine, thanks for checking it out.Kwai chang caine wrote:Hello RobertSF![]()
Thanks for your sharing but i have an error on W10 X86
[Microsoft driver ODBC]Data source not found and name of driver no specified
Thank you, and yes, I went around and around about what database to use. Of course I know about SQLite, but I have never worked with it. I know Access is not designed as a multi-user database, but it does do row and table locking, so as long as the volume is not high and the application is not mission-critical, you can put an Access database on a shared drive and use it within departments and small offices. Can this be done with SQLite?Marc56us wrote:Good work, and thanks for the documentation.![]()
A Sample Database Application for Programmers New to PureBasic.pdf
Getting Started:
The zip file contains a blank database called contacts.mdb. Drag this file to the location of your choice,
and then use the ODBC control panel to create a System DSN or a User DSN called dsContacts that
points to the database.
I think it would be interesting to modify the example so that it is completely autonomous using for example SQLite rather than ODBC access on an .mdb database (access?)
Not all users know how to install a DSN or even the correct version of the ODBC driver (32-bit and 64-bit versions are not compatible)
You may want to do more error checking within your program.RobertSF wrote:If you have any opinions about the code I posted for learning purposes, I would love to hear them.
Wow, thank you so much. That's more than I expected. I'll start addressing those bugs right away.Paul wrote:You may want to do more error checking within your program.RobertSF wrote:If you have any opinions about the code I posted for learning purposes, I would love to hear them.
1. If you start an empty database you are presented with the "enter new contact window". If you press any of the arrow buttons you will crash the program because
I'm looking forward to reading your naming system. I don't have strong opinions, like camel case over Pascal case, but it's hard to come up with a good consistent naming convention.C87 wrote:I have changed your example to use SQLite and it works just fine in 64Bit. Having said all that, your naming system for Forms, Tables etc will not be helpful as time goes on but even that gives the new starter room for thought on naming. Further to that, I have actually written out my recommendation for a general naming system that I used until I retired and hopefully, will be uploading it in the next week.