Autor Beitrag
Melcho
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 145

XP

BeitragVerfasst: Di 04.01.05 12:36 
Tach Jungs und Mädels habe einen Fehler den ich alleine nicht beseitigt bekomme also bitte helft mir :

Spinedit1.Value*10*StrtoFloat(Edit8.Text)*0.08;

Er sagt Anweisung erforderlich aber Typ von Extended gefunden.:(

Danke

_________________
PCP saved my life
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: Di 04.01.05 12:38 
Melcho hat folgendes geschrieben:
Tach Jungs und Mädels habe einen Fehler den ich alleine nicht beseitigt bekomme also bitte helft mir :

Spinedit1.Value*10*StrtoFloat(Edit8.Text)*0.08;

Er sagt Anweisung erforderlich aber Typ von Extended gefunden.:(

Danke


Äh, ja? Der Compiler hat Recht. Was bezweckst du mit einem Aufruf dieser Art? Das ist eine Rechnung, die keiner Variable zugewiesen wird...

AXMD
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Di 04.01.05 12:40 
Melcho hat folgendes geschrieben:
Tach Jungs und Mädels habe einen Fehler den ich alleine nicht beseitigt bekomme also bitte helft mir :

Spinedit1.Value*10*StrtoFloat(Edit8.Text)*0.08;

Er sagt Anweisung erforderlich aber Typ von Extended gefunden.:(

Danke

ausblenden Delphi-Quelltext
1:
Spinedit1.Value := Spinedit1.Value*10*StrtoFloat(Edit8.Text)*0.08;					

Evtl. brauchst du noch die Funktion Trunc oder Round, da ein Spinedit meines Wissens nur Integer akzeptiert.