Autor Beitrag
ceding
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 53

Win XP
D 4
BeitragVerfasst: Mo 02.05.05 16:54 
Tach!

wie wandelt man Real in ein String um?


Moderiert von user profile iconGausi: Topic aus Dateizugriff verschoben am Di 19.07.2005 um 17:16

_________________
Es gibt kein Gott!! Was ist die Seele ?
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: Mo 02.05.05 17:05 
Hi! :D

Meinst du sowas?

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure Blubblubb;
var
MyReal: Real;
MyString: String;
begin
MyString := FloatToStr(MyReal);
end;
ceding Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 53

Win XP
D 4
BeitragVerfasst: Mo 02.05.05 17:08 
na ja ich hab eine variable a:real und die will ich im Edit-Fenster ausgeben

_________________
Es gibt kein Gott!! Was ist die Seele ?
Progger
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 35

WinServer 2003
D7 Enterprise
BeitragVerfasst: Mo 02.05.05 17:10 
tach auch...dat is eigentlcih ganz einfach...
dat machst du einfach mit der funktion:

FloatToStr(Real oder Extended - Zahl)

Bsp.:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
Procedure ...
 Var
    a: Real;
Begin
  a := Sqrt(15);
  Edit1.Text := FloatToStr(a);
End;

_________________
Was nicht kurz ist, ist eben lang und was nicht lang ist, ist eben kurz...
...So ist das Leben
ceding Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 53

Win XP
D 4
BeitragVerfasst: Mo 02.05.05 17:15 
Danke!!

_________________
Es gibt kein Gott!! Was ist die Seele ?
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: Mo 02.05.05 17:20 
:lol: Ich hatte eigentlich gedacht, dass das klar wäre, was ich mit MyString und MyReal meinte... ;) MyString ist in deinem Fall Edit1.Text; MyReal ist a... :lol: einfach nur einsetzen und die var-Deklaration wegschmeißen, dann stimmt's... ;)
ceding Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 53

Win XP
D 4
BeitragVerfasst: Mo 18.07.05 22:51 
stimmt hab's nicht gesehen :?

_________________
Es gibt kein Gott!! Was ist die Seele ?
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: Di 19.07.05 15:17 
user profile iconceding hat folgendes geschrieben:
stimmt hab's nicht gesehen :?

Wie geil... Knapp zwei Monate danach antwortest du... :rofl:
ceding Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 53

Win XP
D 4
BeitragVerfasst: Do 21.07.05 20:52 
ja besser spät als nie :wink:

_________________
Es gibt kein Gott!! Was ist die Seele ?
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: Do 21.07.05 21:39 
user profile iconceding hat folgendes geschrieben:
ja besser spät als nie :wink:

Stimmt auch wieder... :tongue: