Autor Beitrag
beljo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 129



BeitragVerfasst: Do 16.03.06 10:49 
hi Leute,
ist mir schon fast peinlich zu fragen ( hab mein Buch zuhause vergessen).
Ich möchte eine If-Anweisung abfragen mit der Bedingung Radiobutton an.
ausblenden Delphi-Quelltext
1:
 if  RadioButton1=true then...					

Leider klappts so nicht was habe ich falsch gemacht?
Fehlermeldung: [Error] Unit1.pas(400): Incompatible types
bitt um Hilfe.


Moderiert von user profile iconGausi: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Do 16.03.2006 um 10:00
chrisw
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 439
Erhaltene Danke: 3

W2K
D7
BeitragVerfasst: Do 16.03.06 10:51 
ausblenden Delphi-Quelltext
1:
if RadioButton1.Checked then  ....					

oder, wenn Du die Lange Version bevorzugst
ausblenden Delphi-Quelltext
1:
if RadioButton1.Checked = True then  ....					

_________________
Man sollte keine Dummheit zweimal begehen, die Auswahl ist schließlich groß genug.
beljo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 129



BeitragVerfasst: Do 16.03.06 11:14 
besten dank, funkrtioniert einwandfrei :-)
noch eine kleineigkeit warum meckert der Compieler wenn ich arcsin eingeben will?w1e2:= arcsin(r1e1*sin(((alp1/2)-(w1e1*pi/180))/(ri1+hs1+hn1));
so funktioniert es nicht. Er kennt nicht arcsin..
bitte um Rat.
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Do 16.03.06 11:17 
uses math;
Martin1966
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1068

Win 2000, Win XP
Delphi 7, Delphi 2005
BeitragVerfasst: Do 16.03.06 11:17 
Schau doch mal in die Delphi-Hilfe unter ArcSin nach. Dort findest Du dann die Information in welche Unit die Funktion implementiert wurde. Und diese Unit fügst Du dann in die Uses-Anweisung hinzu. Fertig. ;-)

Lg Martin

_________________
Ein Nutzer der Ecke ;-)
beljo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 129



BeitragVerfasst: Do 16.03.06 11:30 
ja danke Leute habt mir mal wieder sehr geholfen :-)
Martin1966
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1068

Win 2000, Win XP
Delphi 7, Delphi 2005
BeitragVerfasst: Do 16.03.06 11:32 
Die nächste Frage aber bitte in einem neuen Topic. :wink:

_________________
Ein Nutzer der Ecke ;-)