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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top