Autor Beitrag
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Di 13.08.02 20:47 
Hi

Gibt es in Delphi eine Funktion um die Einggabe des benutzers auszurechnen.
In PHP gibts da ne Funktion die heißt eval().

Z.B.
Wenn der User
(3+5)*4/(4-2) eingibt dass Delphi dann 1 berechnet

Thanks

Mo
Alfons-G
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 307

Win XP Prof, Linux, Win 7
D5 Prof, D7 Architect, D2005 Architect, D2007 Architect
BeitragVerfasst: Mi 14.08.02 01:30 
Nein, sowas gibt's in Delphi leider nicht vorgefertigt.

Es gibt jedoch etliche Formelinterpreter für Delphi als Freeware. Such mal in den bekannten Downloadseiten, wie z.B. Torry.

:idea:

_________________
Alfons Grünewald
DBR
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 46



BeitragVerfasst: Mi 14.08.02 03:02 
Es ist zuviel, um es hier hinzuschreiben, also ein Link:
home.pages.at/dbr-so...re/delphi/parser.htm

gruss DBR