>>Hi everybody,
>>
>>I have a form level validations of Date field. If date is 6 months older than the current date, the message is displayed and the date must be fixed before proceeding.
>>
>>Now the user has a requirement, that in some cases we want to allow these old dates to go through. So, I'm thinking about new form's property ByPassDateValidation. I will ask a question in form's method, which verifies dates, and then set this flag accordingly.
>>
>>My problem is, I don't want to ask this question everytime. I want to ask once and then use whatever answer the user provided.
>>
>>I don't see a way to solve this problem without using another form's property lFirstTimeAsked. This seems to be an overkill.
>>
>>Do you see a simpler way?
>>
>>Thanks in advance.
>>
>>Ok, while writing I found a way: instead of Logical use numeric (1 - ByPass, 0 - Use validation) and leave this property to be .f.
>
>What about storing NULL in the property?
>NULL - not answered - ask user
>.T. - answered YES - go on with no question
>.F. - answered NO - do not proceed, no question
>
>HTH
Thanks, this sounds more precise, but I already implemented my first idea (well, my only impatience is to blame)
Thanks again.
If it's not broken, fix it until it is.
My Blog