Autor Beitrag
DelphiDelphin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 181



BeitragVerfasst: Sa 19.03.05 13:45 
Hi wie kann ich machen dass wenn in Edit1.Text y stet dass das eine 0 für das Programm ist ???
OneOfTen
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 19.03.05 13:49 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
var y: Integer;
begin
  y := StrToInt(Edit1.Text);
end;


kannst du mir erklären , was du überhaupt meinst? :gruebel:
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 19.03.05 13:54 
Vllt. das: :gruebel:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
var
Zahl: Integer; //Zahl für's Programm ;)
begin
if Edit1.Text = 'y' then Zahl := 0;
end;
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Sa 19.03.05 13:56 
Hi :)!

Bitte ändere deinen Titel deines Beitrags so, dass er den Richtlinien entspricht. Dazu einfach den EDIT-Button rechts oben verwenden.

Richtlinien hat folgendes geschrieben:
1.2 Beiträge
Bitte formuliere den Betreff Deiner Beiträge so, dass andere Mitglieder anhand dieser bereits das eigentliche Thema festmachen können. Beiträge wie etwa "Eine Anfängerfrage" oder "Weiß jemand, wie das geht?" lassen den Leser im Unklaren darüber, was das Thema der Diskussion ist. [..]


Danke :)
AXMD
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Sa 19.03.05 14:20 
ausblenden Delphi-Quelltext
1:
if edit1.text = 'y' then edit1.text:= '0';					


ich glaube er meint, dass ein y wie eine 0 behandelt werden soll,
was möchtest du denn genau machen ?
himitsu
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 40



BeitragVerfasst: Sa 19.03.05 14:40 
Ich hab ja jetzt schon einige Erfahrung beim entziffern von Fragen und ich bin mir relativ sicher, dass WeBsPaCe die passende Lösung hat :roll:

_________________
warum einfach wenn's auch kompliziert geht
schreib wie du willst und halt dich an keine standards
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Sa 19.03.05 14:51 
werden wir ja sehen :twisted: