I need a Textfield only to hold this - so the user can only change the numbers between the ‘:’ char.
00:00:00:00
So I thought I could set the validation mask to ##: ##: ##: ## but that doesn’t work because it depends how your system time format settings are.
I know I can use ##- ##- ##- ## but I really need the ‘:’ as separator.
Any clues how to tackle this?
DerkJ
(DerkJ)
February 10, 2021, 10:30am
2
Try
backslash + “:00” etc
the forum won’t show the backslash so…
Not sure what you meant. Were to add this? In the validation mask field?
DerkJ
(DerkJ)
February 10, 2021, 12:31pm
4
Just aad the characters backslash and the “:00”
The forum removes the backslash character so i can show the actual format
https://documentation.xojo.com/api/deprecated/textedit.html#textedit-validationmask
Scoll down check “mask escape character”
DerkJ
(DerkJ)
February 10, 2021, 1:02pm
6
How the… i can’t put a backslash since the preview of the forum post won’t show it.!
I tried this but then you cannot edit the textfield. It’s always reverted to 00:00:00:00
I need a way that the user can change the digits.
EDIT
I tried to add ##: ##: ##: ## and this works … kinda.
It does accept numbers but ones you have entered all numbers, you cannot change the numbers anymore unless you delete the whole textfield.
Select the text with \ and < in it and click on </>.
You mean you can’t show it.
1 Like