Autor Beitrag
GR-Thunderstorm
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 206



BeitragVerfasst: Di 29.11.11 21:17 
Ich habe einen Record mit 2 Extended-Werten:

ausblenden Delphi-Quelltext
1:
2:
3:
type TFloatPoint = record
X,Y: Extended;
end;


Kann mir jemand sagen, wie ich in Delphi7 Enterprise eigene Operatoren erstellen kann, damit ich zwei Variablen meines Typs TFloatPoint addieren oder subtrahieren kann?
Jedes mal Zeile für Zeile die einzelnen Komponenten zu verrechnen kann auf Dauer recht mühseelig sein. :(
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19338
Erhaltene Danke: 1752

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Di 29.11.11 21:48 
Diese Funktionalität gab es damals in Delphi 7 noch nicht. Erst ab Delphi 2006.
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Di 29.11.11 22:09 
In Delphi 7 wirst Du wohl oder übel dir für deine Operation eine Funktion schreiben, und diese ann immer aufrufen ..

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.