[Tutor] Help with storing a variable
Alan Gauld
alan.gauld at yahoo.co.uk
Tue Oct 31 20:41:33 EDT 2023
On 31/10/2023 11:43, nadeem nan via Tutor wrote:
> Hi Alan,
Hi. but there are quite a few others here to help too! :-)
> I was wondering how would I go about storing this tenant-code
> so when the user returns to the application to add more tenants
> the tenant-code is incremented from where it was left.
There are several ways to do this but your idea of saving it as a
special field in the Excel spreadsheet is OK.
I would say that this project sounds more suited to a database
(such as SQLite) than a spreadsheet however, but the principles
are the same. (A database handles this particular problem
automatically, by maintaining its own unique identifiers etc
and makes retrieving data much easier than using a spreadsheet.)
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list