GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV Mobile 2024
→
[WM26] Invalid date
[WM26] Invalid date
Iniciado por Mauricio, fev., 05 2022 5:48 AM - 4 respostas
Conecte-se…
Mauricio
#1
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
Denunciar
0
0
ARV
#2
Membro registado
498 mensagems
Popularité : +8 (8 votes)
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
Denunciar
0
0
ARV
#3
Membro registado
498 mensagems
Popularité : +8 (8 votes)
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/…
Denunciar
0
0
Mauricio
#4
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
Denunciar
0
0
ARV
#5
Membro registado
498 mensagems
Popularité : +8 (8 votes)
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
Denunciar
0
0
→ Voltar para WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto