Hit backspace: the cursor will settle on the left paren so that if you type a digit, the edit mask will gobble it and it won't show up. You have to first hit the right arrow to move the cursor to the first digit position and then enter a digit.It is supposed to move to the first editable position, so this is a bug.
using 000 is will fault, and there is no way that I can see to catch it? It pops up a fault screen either way in or out of debug mode and where would you put a Try and catch on this ? 8)
Hit backspace: the cursor will settle on the left paren so that if you type a digit, the edit mask will gobble it and it won't show up. You have to first hit the right arrow to move the cursor to the first digit position and then enter a digit.It is supposed to move to the first editable position, so this is a bug.
Feel free to implement it.
Bart
To be honest, I would like to know how many users actually use a TMaskEdit (or it's DB counterpart).
Bart
using a MASK := 000-000-0000;0;_;I cannot reporduce that.
hitting the backspace causes the first initial input to land on the second digit.
Also there seems to be something wrong with displaying unwanted tail items in the EDIT, like the ";" etc
The only issue I have with it is it does not have an OnError event, nor does Delphi last time I checked so its kind of hard to capture the error and make a choice on what to do with it, ignore the error and fill in some defaults, Exit with an message box or somehow force it to about its editing back to the original text that was there upon entry..
Seriously you can't see the bug in the MASK ?
Seems to work with both 0000 and !(0000), I am sure the others will appreciate you
The only issue I have with it is it does not have an OnError event...