Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valid and GotFocus events
Message
De
01/01/2013 12:08:58
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01560981
Message ID:
01561016
Vues:
86
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>I am trying the following code in the Valid even of the complex class
>
>
>WAIT WINDOW TIMEOUT 1 this.currentdatetime
>WAIT WINDOW TIMEOUT 1 'Valid'
>if NOT ISNULL(this.CurrentDatetime) AND this.value <> this.CurrentDatetime && if value changed
>	if not this.parent.parent.VerifyEntry(this.value)
>		return 0
>	endif
>endif
>
>and the first window never shows up. Why this may be and how can I test the value of the current date time property? It seems to be not set correctly although GotFocus is supposed to set it to the value and I only want to fire the VerifyEntry method if the value actually changed.
>
>I had originally
>
>if this.value = this.CurrentDatetime
>   ** do nothing
>else
>   ***
>endif
>
>and I think when I had it this way, nothing happened. Now my verification happens even if the value didn't change.
>
>I am not sure how to make this work correctly.
>
>Do you see where the error in my logic is?
>
>Thanks in advance.

Uses DEBUGOUT to trace code.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform