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.55 MB
Time: 0.029 c
14-22347
roman001
2001-11-06 18:09
2002.01.08
Hosting


1-22158
Praco
2001-12-20 16:29
2002.01.08
TCustomGrid and all its descendants ...


3-21973
Zav
2001-12-06 10:55
2002.01.08
DBNavigator component


6-22289
Kirill
2001-10-03 18:33
2002.01.08
IE context menu


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





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