Autor Beitrag
der Berliner
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 417

Win Xp Home
delphi 2005
BeitragVerfasst: Di 26.09.06 17:02 
Hallo zusammen
Weiß jemand wie die Eingabemaske für ein TMaskEdit aussehen muß wenn ich Geldbeträge eingeben will.
Ich kriegs net hin.

Ich habe folgendes:
!99999.99 €;0;_

Wenn ich jetzt z.b. 22,50 eingeben will, kommt mit meiner Maske 22___,50 € das sieht natürlich Sch... aus.
Edit // es kann auch sein das mann 222,50 oder 2222,50 oder 22222,50 eingeben muß.
Weis wer wie das richtig geht?
Gruß

_________________
[b]Ich weiß nicht immer, wovon ich rede. Aber ich weiß, dass ich recht habe.[b]
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Di 26.09.06 17:50 
Hallo,

'!99999.99 €;0; ' beachte das Leerzeichen am Ende!

Noch eine Empfehlung, unabhänig von Systemeinstellungen und mit Tausenderpunkt:

ausblenden Delphi-Quelltext
1:
  MaskEdit1.EditMask := '!99'+ThousandSeparator+'999'+DecimalSeparator+'99 €;0; ';					

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
der Berliner Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 417

Win Xp Home
delphi 2005
BeitragVerfasst: Di 26.09.06 18:03 
Vielen Dank.
Kannst Du kurz erklären wozu das Leerzeichen am Ende ist ?
Gruß

_________________
[b]Ich weiß nicht immer, wovon ich rede. Aber ich weiß, dass ich recht habe.[b]
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Di 26.09.06 18:04 
Hallo,

dein letztes Zeichen war ein Unterstrich, die Zeichen die Dich gestört haben :wink:

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Di 26.09.06 18:06 
Das ist wohl der Platzhalter: was bei dir davor der Unterstrich '_' war, ist jetzt das Leerzeichen ' '.

Edit: *verneig*

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
der Berliner Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 417

Win Xp Home
delphi 2005
BeitragVerfasst: Di 26.09.06 18:45 
ok Dank Nochmal

_________________
[b]Ich weiß nicht immer, wovon ich rede. Aber ich weiß, dass ich recht habe.[b]