Question

Is it possible to retain the data listed in ListView without using Database? I am using VB6 and I want to retain the data I listed in listview even if the users re-open the program. If its possible, how can I do that?

Was it helpful?

Solution

You don't have to use a database to store data outside of an application.

The best way would probably be to store it in a simple text file. I would use the built-in VB file access statements - Write # to save to the file, and Input # to load the data in.

You could also use the MSXML library to persist it as XML, although this is overkill.

If it was small amounts of data, you could store it in the registry using the SaveSetting/GetSetting functions.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top