Zum Inhalt springen

cosi

Mitglieder
  • Gesamte Inhalte

    7
  • Benutzer seit

  • Letzter Besuch

Alle Inhalte von cosi

  1. cosi

    ...

    wofür ist in delphi das "case bla of" zuständig?
  2. cosi

    hilfe

    grueni: a) =P delphi c) danke
  3. was hat caption zu bedeuten? was bringts mir wozu brauch ich es?:confused:
  4. danke schön erstmal für eure hilfe! =)
  5. was hatn eigentlich das round zu bedeuten? also bei x:=round(( bla...) und: For i:=1 To StringGrid1.rowcount-1 Do dieses rowcount-1 !? was rowcount is weiß ich aber warum minus 1??
  6. ob ichs mache? naja meinetwegen unit Unit1; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Grids; type TForm1 = class(TForm) StringGrid1: TStringGrid; Label1: TLabel; Edit1: TEdit; Button1: TButton; Button2: TButton; procedure Button2Click(Sender: TObject); procedure Button1Click(Sender: TObject); private { Private-Deklarationen } public { Public-Deklarationen } end; var Form1: TForm1; x,i:integer; implementation {$R *.DFM} procedure TForm1.Button2Click(Sender: TObject); begin close; end; procedure TForm1.Button1Click(Sender: TObject); begin stringgrid1.cells[1,0]:='Name'; stringgrid1.cells[2,0]:='Vorname'; stringgrid1.cells[3,0]:='Punkte'; stringgrid1.cells[4,0]:='Prozente'; stringgrid1.cells[5,0]:='Note'; stringgrid1.cells[0,1]:='1'; stringgrid1.cells[0,2]:='2'; stringgrid1.cells[0,3]:='3'; stringgrid1.cells[0,4]:='4'; For i:=1 To StringGrid1.rowcount-1 Do begin x:=round((strtoint(stringgrid1.Cells[3,i])/25)*100); stringgrid1.cells[4,i]:=inttostr(x)+'%'; case x of 0..12:stringgrid1.cells[5,i]:='6'; 13..22:stringgrid1.cells[5,i]:='5-'; 23..32:stringgrid1.cells[5,i]:='5'; 33..42:stringgrid1.cells[5,i]:='5+'; 43..48:stringgrid1.cells[5,i]:='4-'; 49..54:stringgrid1.cells[5,i]:='4'; 55..60:stringgrid1.cells[5,i]:='4+'; 61..65:stringgrid1.cells[5,i]:='3-'; 66..70:stringgrid1.cells[5,i]:='3'; 71..75:stringgrid1.cells[5,i]:='3+'; 76..80:stringgrid1.cells[5,i]:='2-'; 81..85:stringgrid1.cells[5,i]:='2'; 86..91:stringgrid1.cells[5,i]:='2+'; 92..95:stringgrid1.cells[5,i]:='1-'; 96..99:stringgrid1.cells[5,i]:='1'; 100:stringgrid1.cells[5,i]:='1+'; end; end; end; end. hat was mit noten und prozente zu tun...schule halt
  7. tach hab da ma nen problem und zwar bei delphi hab ich ein programm geschrieben was soweit ok ist und funktionieren würde aber wenn ich es starten will sagt er mir "im projekt bla bla ist eine exception der klasse EConvert error aufgetreten . meldung: ' " ist kein gültiger integerwert' . " und dann geht nüscht mehr. ich hab aber nirgenswo anführungszeichen in meiner unit drin. und nu?

Fachinformatiker.de, 2024 by SE Internet Services

fidelogo_small.png

Schicke uns eine Nachricht!

Fachinformatiker.de ist die größte IT-Community
rund um Ausbildung, Job, Weiterbildung für IT-Fachkräfte.

Fachinformatiker.de App

Download on the App Store
Get it on Google Play

Kontakt

Hier werben?
Oder sende eine E-Mail an

Social media u. feeds

Jobboard für Fachinformatiker und IT-Fachkräfte

×
×
  • Neu erstellen...