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
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: