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

Down

I really need Find similar branches


Катя   (2001-12-20 08:27) [0]

in stringed, I select strings by condition and they need to be removed from the table-how to do it? I used all the help, there are a lot of functions, but none of them really work ... or I will brake in the morning .. :-(



gek   (2001-12-20 08:41) [1]

Well, take inheritance from grid and transfer functions there

procedure RowMoved (FromIndex, ToIndex: Longint); override;
procedure ColumnMoved (FromIndex, ToIndex: Longint); override;
procedure InsertRow (ToIndex: LongInt);
procedure DeleteRow (DIndex: LongInt);

in public

in the grid they are in private



MBo   (2001-12-20 08:47) [2]

procedure TForm1.Button2Click (Sender: TObject);
var i, j: integer;
begin
with StringGrid1 do
for i: = RowCount-1 downto 0 do
if (your condition) then begin
begin
Rows [i] .Clear;
if i <RowCount-1 then
for j: = i to RowCount - 2 do Rows [j]. Assign (Rows [j + 1]);
RowCount: = RowCount - 1;
end;
end;
end;



Pages: 1 whole branch

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

Top















Memory: 0.81 MB
Time: 0.032 c
14-22368
Hedgehog
2001-11-08 09:52
2002.01.08
Internet


1-22264
Anatoly
2001-12-17 06:36
2002.01.08
Chart


1-22037
Aleksandr
2001-12-18 13:03
2002.01.08
The component is not drawn, and that's it ...


1-22049
greenrul
2001-12-17 18:34
2002.01.08
Как


3-21940
Serik
2001-12-05 09:15
2002.01.08
InterBase & VisualC ++





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