Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Down

TListItems Find similar branches


Virtualik   (2001-12-17 16:09) [0]

How to exchange items on the subject list?

The fact is that the trivial option:
I: = I1;
I1: = I2;
I2: = I
Does not pass.



Digitman   (2001-12-17 16:11) [1]

In which list, then? List list discord. Or do you think (judging by the question) that your list is a list of all lists?))))))



Fellomena   (2001-12-17 17:13) [2]

For ListBox1:
... var s: string; ... begin ... s: = ListBox1.Items [0]; ListBox1.Items [0]: = ListBox1.Items [1]; ListBox1.Items [1]: = s; ... end;
So satisfied?



Virtualik   (2001-12-17 17:35) [3]

I repeat: I’m talking about elements from TListItems, those that are used in the TListView component, and not in the TListBox.

The problem is in the exchange of objects.



MBo   (2001-12-17 17:57) [4]

The problem seems to be in the creation of an intermediate element.
regular path - Items.Add
it seems to work
var l: tlistitem;
begin
l: = lv1.items.add;
l.Assign (lv1.items [0]);
lv1.items [0] .assign (lv1.Items [1]);
lv1.items [1] .assign (l);
lv1.Items.delete (lv1.items.count-1);





Pages: 1 whole branch

Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Top









Memory: 0.56 MB
Time: 0.027 c
1-22171
Sun
2001-12-20 14:19
2002.01.08
Is a miracle possible?


1-22148
Delphimun
2001-12-20 12:10
2002.01.08
How to send a message to the system that a key is pressed?


6-22286
Rey
2001-10-08 18:07
2002.01.08
People !!! Need ICQ!


1-22026
Romualds stashans
2001-12-18 11:07
2002.01.08
How can Delphi run * .exe with ....


1-22213
T2
2001-12-16 07:14
2002.01.08
Secret Api & oth.





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian Japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Español swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish