Link to home
Start Free TrialLog in
Avatar of palli011000
palli011000

asked on

Quesiton for Radler


I want to put all values in listview into file and with checkbox in it, and when i load the file i want all values go into listview with the checkboxes

Alright!!!
Avatar of Lischke
Lischke

Palli, you should carefully test the code given by Radler. It is not as general as he said it would be. Try it out. If the listview contains 0 items an exception is raised and if there are more than 32 items the provided space is not enough to hold all check values.

Ciao, Mike
Avatar of palli011000

ASKER

What!!! Radler

can you change this?
You should make an array that holds all the checked/unchecked values. Or you store a series of records like this:

Record
  Name:String;
  Checked:Boolean;
End;
Radler?
Radler?
Hi I'm here.
All assertions are true.
The limit is 32 items and the 0 condition is not checked.
Thanks to all to remind me :-)
To correct the code to save the of "ilimited" items I'll take more code lines. I'm doing it now. wait ten minutes.
Ah, When( event or moment ) you desire load the ListView ?

T++, Radler.
ASKER CERTIFIED SOLUTION
Avatar of Radler
Radler

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Still need function
Thanks Palli.
On demand ....

T++, Radler.
one thing, if i have listview on form2 ( unit2 ) and try to load old file into listview that are on form2 from form1 , the checkbox will not come , that where checked or not checked

palli
Send your code to roger@ars.com.br to more effective analisys.

T++, Radler.