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

Down

help, good people Find similar branches


Катерина   (2001-12-20 07:37) [0]

Добренько утречко.у меня маленькое затруднение -не получается удалить строку из стрингрида. какая нужна функция и с какими параметрами? Я попытнулась применить delete, но что-то delphi в параметрах не устраивает.



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


procedure TFormEnterData.StringGrid1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
var
TStr:TStrings;
begin
if key = VK_DELETE then
If MessageDlg("Удалить текущую запись ? ",mtWarning,
[mbOk,mbCancel],0) = mrOk then
with StringGrid1 do
begin
if RowCount = 2 then
begin
StringGrid1.RowCount:=2;
StringGrid1.Rows[1].Clear;
exit;
end;
TStr:=Rows[RowCount-1];
Rows[(StrToInt(LabelPosition.Caption))]:=TStr;
RowCount:=RowCount - 1;
LabelCountRows.Caption:=IntToStr(RowCount -1);
end;
end;




Pages: 1 whole branch

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

Top















Memory: 0.81 MB
Time: 0.03 c
4-22478
Ross
2001-08-28 16:53
2002.01.08
Start Menu


1-22256
walking questionnaire
2001-12-15 08:50
2002.01.08
Reading values ​​from ini file


1-22103
ProfiUgl
2001-12-19 17:15
2002.01.08
Event form


1-22140
Serg5
2001-12-20 10:17
2002.01.08
The question of whether it is possible to reduce the font to 4 pixels, it changes, it changes (the program does not swear), but on the screen (Canvas.Font) it still displays 8 (the most minimal)


3-21922
Stas
2001-11-29 12:50
2002.01.08
BDE





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