|
Iniciado por mauricionospamplease.nicastro, fev., 05 2022 5:48 AM - 4 respostas |
| |
| | | |
|
| |
Publicado em fevereiro, 05 2022 - 5:48 AM |
Hi, I'd like to know why WM allows invalid dates like the ones you can see in the attached image: https://www.screencast.com/t/QK72WVbxxupf The entry is a date field, input mask is DD/MM/YYYY HH:mm:SS. When you test this on PC (simulator) it's impossible to switch to another entry if you enter and invalid date. When you test in the mobile, you can, and, even worse, it allows to save that invalid value in the table. What's the right way to avoid this behavior? Thanks in advance.
Mauricio
-- Mauricio Nicastro www.tdcsoftware.com |
| |
| |
| | | |
|
| | |
| |
Membro registado 514 mensagems |
|
Publicado em fevereiro, 16 2022 - 4:47 PM |
Hi
Maybe you found the solution but
Have you even try to use the following function?
DateValid()
This could help to validate the date you are having, maybe the mask doesn't help but with this you could at least code it
Hope this helps in a way
source: https://doc.windev.com/en-US/…
-- Best Regards ARV |
| |
| |
| | | |
|
| | |
| |
Membro registado 514 mensagems |
|
Publicado em fevereiro, 16 2022 - 4:49 PM |
Hi
You have also the following function:
DateTimeValid()
With this you can even validate everything you have on your edit, date and time
Hope this help you in a way
source: https://doc.windev.com/en-US/… |
| |
| |
| | | |
|
| | |
| |
Publicado em fevereiro, 17 2022 - 8:42 AM |
Hi ARV, solution was to use DatePicker because in that way is impossible to enter an invalid date. Despite that, it's a serious bug, yes, you can use DateValid or DateTimeValid but I believe WM should control that by itself, like other languages. Thanks for your suggestion.
ARV brought next idea :
Hi You have also the following function: DateTimeValid() With this you can even validate everything you have on your edit, date and time Hope this help you in a way source: https://doc.windev.com/en-US/…
-- Mauricio Nicastro www.tdcsoftware.com |
| |
| |
| | | |
|
| | |
| |
Membro registado 514 mensagems |
|
Publicado em março, 24 2022 - 4:33 PM |
Hi Mauricio
Sorry for the late response
I glad you could fine a solution also I never knew about this function it would be really handly
-- Best Regards ARV |
| |
| |
| | | |
|
| | | | |
| | |
|