Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Valid and GotFocus events
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Valid and GotFocus events
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01560981
Message ID:
01560981
Views:
88
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.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform