Autor Beitrag
r4id3n
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 115

Win XP Home, Win XP Pro
D6 Prof, D7 Ent, K3 Ent
BeitragVerfasst: Sa 07.08.04 13:18 
Hallo zusammen.

Gibt es eine Möglichkeit die MessageBox/Exception zu unterdrücken, wenn ein MaskEdit nicht komplett ausgefüllt ist?

THX

r4id3n
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Sa 07.08.04 14:19 
die Mask ändern? :roll:

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Sa 07.08.04 15:39 
eigenen Exception-Handler schreiben.

_________________
Gruß
Hansa
r4id3n Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 115

Win XP Home, Win XP Pro
D6 Prof, D7 Ent, K3 Ent
BeitragVerfasst: Sa 07.08.04 15:47 
Die Maske ändern kommt leider nicht in frage! Und für den Exception handler müsste man wissen, wo der rein kommt!?

Hat villeicht einer von euch nen bspcode!?


THX!
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Sa 07.08.04 15:50 
Wo soll denn der reinkommen ? Exception-Handler hört sich schlimmer an als es ist. Du mußt die fehlerhaften Eingaben im OnExit des MaskEdit abfangen und fertig.

_________________
Gruß
Hansa
r4id3n Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 115

Win XP Home, Win XP Pro
D6 Prof, D7 Ent, K3 Ent
BeitragVerfasst: Sa 07.08.04 17:47 
Problem ist, dass wenn ich die fehlerhafen eingaben abfange trozdem die exception gefiret wird .... Hat niemand eine idee? Ne idee wäre villeicht die komponente um zu schreiben, aber das will ich vermeiden :lol:
Muetze1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 346



BeitragVerfasst: Sa 07.08.04 18:58 
Moin!

Ich bin auch dafür die Maske zu ändern, weil es gibt ja nunmal die Möglichkeit bei der Maske anzugeben ob die jeweiligen Zeichen benötigt werden oder nicht...

Im OnExit wird aber die Masken-Validierung nicht innerhalb des Ereignisses ausgeführt sondern nur davor oder danach - also ausserhalb des Fokus der Procedure und daher kann die Exception nicht im OnExit abgefangen werden, da sie dort nicht auftritt...

MfG
Muetze1
r4id3n Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 115

Win XP Home, Win XP Pro
D6 Prof, D7 Ent, K3 Ent
BeitragVerfasst: So 08.08.04 21:30 
OK, ihr habt mich überzeugt ... Werde die auf nicht erforderlich ändern ...

THX