Save/load the contents of a ListView control
By: Lorenzo Dalla Vecchia Date: 02/07/2000
File:

saveloadlw.zip

Size:

989 bytes

Download now!

The module contains two procedures to save into a textfile the contents of a ListView control (including all the columns and sub-columns) and lately load them back.

They are very easy to use: just feed them with a textfile name and a ListView control name.

Syntax

LoadLW(ListViewControl,textfile)
SaveLW(ListViewControl,textfile)

Parameters

ListViewControl: name of the ListView to save/load
textfile: file to store data; it'll be located in the application'sfolder

Type of data

N/A

Returns

N/A

-

Example:
The following saves the contents of lswList into data.txt.

Call SaveLW(lswList, "data.txt")

The procedures are contained in a module. You can include it in any program of yours.

Click Here!


Visual Basic Programming Zone is a website by Lorenzo Dalla Vecchia.
To contact the Webmaster, click here.
Hosted by InWind: www.inwind.it