Date, Time and Number Capture with restrictions

gawie007

Member
Licensed User
Longtime User
Hi People,

I have always struggled to make sure that the data that is entered is what it should be.
I do not really want to use RegEx - I do for telephone numbers etc though.

I need to get numerical values entered into my program.

In one case, I need to only input the day of month.
I could use an InputList.
I could also use a NumberDialog which would be better however I would then require a limit of 31 to minimise errors (obviously it could also be 28/29/30).

With my work, I also need time in seconds (without Hours and Minutes) and so the TimeDialog is unsuitable since it is hours and minutes.
Again a NumberDialog could be used with a limit of 60.
An InputList would also do but it would be a long list.

Andrew Graham has done terrific work with the Dialogs and they do what it says on the tin!

I am not sure if someone like Informatix (with his good knowledge of reflection) is able to "modify" the NumberDialog to do something like this? If so, I would appreciate if he could point me in the right direction.

I could also make a number type dialog myself with the CustomDialog. The issue being is that it would look different (the +/- buttons etc) to all the other dialogs that I am using....All this for the sake of how it looks!

Perhaps another alternative would be to make a view in Java for this????

Cheers
Gavin
 
Last edited:

gawie007

Member
Licensed User
Longtime User
Hi Erel,
Thank you for your reply. I did check AnotherDatePicker while searching for a solution.
Hi, drachmad,
I did not think to enter the search string "wheel" - excellent find!
I think this was exactly what I was looking for - I will play around with it for a while to make sure. Another great piece of work by Klaus (Thank you!).
Thank's for the help guys!
 
Upvote 0
Top