Einzelnen Beitrag anzeigen

Dax
(Gast)

n/a Beiträge
 
#6

Re: Aus String ein Operationszeichen machen

  Alt 30. Dez 2004, 19:10
So ginge es:
Delphi-Quellcode:
type
  TOperation = (Plus, Minus, Multiply, Divide);

case s of
  '/' Operation := Divide;
  // ...
end;
  Mit Zitat antworten Zitat