![]() |
StringGrid1Click & aktuelle zeile
versuche die aktuelle zeile eines stringgrids in ein edit zu bekommen
Delphi-Quellcode:
da stimmt aber was nicht...
procedure TForm1.StringGrid1Click(Sender: TObject);
var c, min, i, j: Integer; s: string; begin for i := 0 to stringgrid1.Rowcount - 1 do begin for j := 0 to stringgrid1.Colcount - 1 do begin s := StringGrid1.Cells.[i, j]; edit2.text := s; end; end; end; |
Re: StringGrid1Click & aktuelle zeile
hat sich erledigt ;)
|
Re: StringGrid1Click & aktuelle zeile
Nennst du uns bitte die Lösung?
Danke! MfG Florian :hi: |
Re: StringGrid1Click & aktuelle zeile
sehr gerne doch...
Delphi-Quellcode:
procedure TForm1.StringGrid1Click(Sender: TObject);
var s:string; begin s := StringGrid1.Cells[StringGrid1.Col,StringGrid1.Row]; if Length(s) > 1 then begin Edit2.Text := s; end; end; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 03:51 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz