I would create a small method that extends the date or datetime object to do it so that I don’t have to type the whole thing multiple times in the application. Something like this:
HHMMSS (extends N as Date) as string
Dim T as string
T = format(N.hour, "00") + ":" + format(N.minute, "00") + ":" +format(N.second, "00")
return T
then it would be as simple as textfield.text = myDate.HHMMSS
Curious, I just tried “9999-99-99” to test the mask as I know it works in API1. But, no, it does not works in API2 (Xojo 2019r3.1). I only get beeps when I type a number.
Strange
Edit:
I set that mask in another TextField, and it react the same (except tehe quote character): beeps everywhere !
It is pure hazard that I hear the beeps. Usually, the sound is off here (mainly because of Xojo and I do not want to wake up someone, when I use my computer in the middle of the night).
The problem is Xojo reject my numbers from the keyboard