Autor Beitrag
delphisual
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 89

WIN 2000
D5 Prof
BeitragVerfasst: Di 08.07.03 17:00 
Hallo zusammen,

ich möchte im Eingabefeld Punkt und Komma zulassen, und mein Programm soll direkt nach der Eingabe von Punkt also Key #46, den Punkt durch eine Komma ersetzen.

kann mir bitte wer helfen?

Moderiert von user profile iconTino: Titel geändert.

_________________
(Wer ein Problem definiert, hat es schon halb gelöst.)
Alibi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458

Win2K SP3
Delphi 6 Ent
BeitragVerfasst: Di 08.07.03 17:05 
Lass doch einfach nur das Kommazeichen zu. Das für das System gültige Kommazeichen stellt Delphi in der Variable CommaSeperator bereit.
Tomac
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 113

Win XP
D6 Ent
BeitragVerfasst: Di 08.07.03 17:23 
Das müsste so gehen:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
if key='.' then key:=',';
end;


mfG
Tomac
delphisual Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 89

WIN 2000
D5 Prof
BeitragVerfasst: Di 08.07.03 17:36 
Danke sehr, manchmal denkt man zukompliziert :oops: :oops: :oops:

_________________
(Wer ein Problem definiert, hat es schon halb gelöst.)