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.55 MB
Time: 0.022 c
1-22028
tovSuhov
2001-12-18 12:16
2002.01.08
Maybe someone knows ...


1-22244
Socol
2001-12-15 15:42
2002.01.08
Download file!


1-22104
Derzky
2001-12-18 19:54
2002.01.08
How to compare dates.


1-22056
Delphimun
2001-12-15 13:11
2002.01.08
How to create a resource using brcc32.exe?


1-22066
Andrey Senchenko
2001-12-19 10:53
2002.01.08
Types Or help to read HELP





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 Spanish 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