Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with textbox valid
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Problem with textbox valid
Miscellaneous
Thread ID:
00739346
Message ID:
00739346
Views:
57
I have a form which was just converted from FPW/2.6 to VFP 6. The modal form works fine, I've moved all code into the appropriate methods. However, one field freezes (or appears to freeze) if there is a condition that causes the valid to fail. the controlsource is a date memory variable. On this form, if the date is within the valid parameters upon exit, then the focus moves to the next control as expected. the form only dies when the following code is tripped.

Here's the valid code:
if date() - this.value > 365
     return .f.
endif
This works fine if I populate the variable, then run the form from the command line, so I assume there is some wierd setting this old app might be tripping.

any ideas would be greatly appreciated!
Steve Howie, owner
DaSH Technology
Denver, CO
Next
Reply
Map
View

Click here to load this message in the networking platform