FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV Mobile 2024
→
[WM26] Invalid date
[WM26] Invalid date
Débuté par Mauricio, 05 fév. 2022 05:48 - 4 réponses
Connectez-vous…
Mauricio
#1
Posté le 05 février 2022 - 05:48
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
Signaler
0
0
ARV
#2
Membre enregistré
498 messages
Popularité : +8 (8 votes)
Posté le 16 février 2022 - 16:47
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
Signaler
0
0
ARV
#3
Membre enregistré
498 messages
Popularité : +8 (8 votes)
Posté le 16 février 2022 - 16:49
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/…
Signaler
0
0
Mauricio
#4
Posté le 17 février 2022 - 08:42
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
Signaler
0
0
ARV
#5
Membre enregistré
498 messages
Popularité : +8 (8 votes)
Posté le 24 mars 2022 - 16:33
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
Signaler
0
0
→ Revenir à WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte