Autor Beitrag
baddy
Hält's aus hier
Beiträge: 5



BeitragVerfasst: Do 19.06.03 11:00 
Hey Leute, ich verstehe unten stehenden Quelltext irgendwie nich. Kann mir vielleicht jemand weiterhelfen????

Greetz baddy

ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
procedure TForm1.StringGrid1SetEditText(Sender: TObject; ACol, 
  ARow: Integer; const Value: String); 
Var strbuffer : String; 
    spalte : Integer; 
begin 
  with stringgrid1 do 
    begin 
     if cells[acol,arow] <> '' then 
       begin 
         Strbuffer := cells[acol,arow]; 
         tabelle[acol,arow] := Strtofloat(Strbuffer); 
         tabelle[acol + 1,arow] := tabelle[acol,arow] + StrtoFloat(edit1.text); 
         tabelle[acol + 2,arow] := tabelle[acol + 1,arow] + StrtoFloat(edit2.text); 
         cells[acol + 1,arow] := FloattoStr(tabelle[acol + 1,arow]); 
         cells[acol + 2,arow] := FloattoStr(tabelle[acol + 2,arow]); 
     end; 
    end; 
  summe(acol); 
  spalte := 2; 
  summe(spalte); 
  spalte := 3; 
  summe(spalte); 
end; 

procedure TForm1.FormKeyPress(Sender: TObject; var Key: Char); 
begin 
  case key of 
    ',':     key := '.'; 
    'o','O': key := '0'; 
  end; 
  if not (key in ['0'..'9','.','-',chr(8)]) then key := #0; 
end;
CenBells
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1547

Win 7
Delphi XE5 Pro
BeitragVerfasst: Do 19.06.03 11:04 
wie oft sollen wir dir den quelltext denn noch erklären?

Die gleiche Frage war hier doch schon mal. Unter folgender adresse findest du auch ne lösung
www.delphi-forum.de/...r=asc&highlight=
Gruß
Ken
grayfox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 800

win98, winXP
D4 Standard; D6 Personal
BeitragVerfasst: Do 19.06.03 13:10 
hallo baddy!

warum lädst das programm nicht einfach mit delphi, setzt dir vor den fraglichen stellen einen haltepunkt und sieht dir im einzelschritt-modus die ergebnisse der variablen an?
du glaubst gar nicht, worauf du bei dieser methode alles draufkommen kannst ;)

mfg, stefan
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Do 19.06.03 13:16 
Okay, die Frage wurde nun schon zum dritten Mal gestellt.
Baddy, bitte zu einer Frage nur einen einzigen Thread. Wenn jemand die Frage nur ungenügend beantwortet hat, kannst du auf "antwort erstellen" klicken und nochmal genau nachfragen, aber keinen neuen Thread aufmachen!

www.delphi-forum.de/viewtopic.php?t=12681

Geschlossen...

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
Dieses Thema ist gesperrt, Du kannst keine Beiträge editieren oder beantworten.

Das Thema wurde von einem Team-Mitglied geschlossen. Wenn du mit der Schließung des Themas nicht einverstanden bist, kontaktiere bitte das Team.