Board index » delphi » Strange Thing
Michael Walker
![]() Delphi Developer |
Tue, 03 May 2005 21:23:30 GMT
Strange Thing
Hi everyone, I am writing a program that take items from a lit box, and
assigns them to a record. Here is the code I have used .... for i := Listbox1.Count -1 downto 0 do begin case i of 0 : Details.Username := ListBox1.Items.Text[i]; 1 : Details.Pasword := ListBox1.Items.Strings[i]; 2 : Details.Sex := ListBox1.Items.Strings[i]; 3 : Details.Location := ListBox1.Items.Strings[i]; 4 : Details.Personal := ListBox1.Items.Strings[i]; 5 : Details.Email := ListBox1.Items.Strings[i]; 6 : Details.Op := False; end; {case} end; {for} ..... |