Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with textbox valid
Message
From
08/01/2003 12:17:42
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00739346
Message ID:
00739365
Views:
13
Any set date commands in your app? if you put 'set step on' in the gotfocus of the text box or at the beginning of the valid event and verify the value of the textbox before you check it's integrity in your valid event, what is the format of the date entered? Is set strict date on?

Tracy

>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!
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform