AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Stringgrid Zeilen füllen

Ein Thema von Ego · begonnen am 1. Dez 2012 · letzter Beitrag vom 3. Dez 2012
 
Popov
(Gast)

n/a Beiträge
 
#4

AW: Stringgrid Zeilen füllen

  Alt 1. Dez 2012, 21:04
Sollte beides kein Problem sein. Problem liegt evtl. wo anders.

//Edit:

Ich hab es gerade noch mal getestet, bei mir funktioniert beides in etwa ähnlich

Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
type
  Txyarray = record
    bezeichnung: string;
  end;
var
  xyarray: array[1..100] of Txyarray;
  zeile, zaehler: Integer;
begin
  for zaehler := low(xyarray) to high(xyarray) do
    xyarray[zaehler].bezeichnung := IntToStr(zaehler);

{  zeile := 0; tabelle.rowcount := 2;
  for zaehler := low(xyarray) to high(xyarray) do
  begin
    inc(zeile);
    tabelle.cells[1,zeile] := xyarray[zaehler].bezeichnung;
  end;
  tabelle.rowcount := length(xyarray);   }


  zeile := 0; tabelle.rowcount := 2;
  for zaehler := low(xyarray) to high(xyarray) do
  begin
    inc(zeile);
    tabelle.rowcount := tabelle.rowcount + 1;
    tabelle.cells[1,zeile] := xyarray[zaehler].bezeichnung;
  end;
end;

Geändert von Popov ( 1. Dez 2012 um 21:09 Uhr)
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 23:14 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