I recently started programming in foxpro and I'm now trying my hand at dates...
So I'm looking for an effective validation method for the date entered in this field, in the sense that based on what the user types, if it's not valid or it's not a date, he is warned.
Basically I'm having difficulty because in the beginning this field is of character type... I don't want to do complex checks and validations on the character, but on the dates. I would like to treat this field as a date and then:
- Check if empty (with "C" I couldn't because it detected "/");
- Check if the date is valid (for example 02/30/2022 would not be valid;
- Check the input, if the user writes various written numbers... example in photo...
I set the inputMask and Format properties to 99/99/9999 and "D". I tried to write the valid() of the field, but I still haven't succeeded..could someone help me to understand how to do it usually?
So I'm looking for an effective validation method for the date entered in this field, in the sense that based on what the user types, if it's not valid or it's not a date, he is warned.
Basically I'm having difficulty because in the beginning this field is of character type... I don't want to do complex checks and validations on the character, but on the dates. I would like to treat this field as a date and then:
- Check if empty (with "C" I couldn't because it detected "/");
- Check if the date is valid (for example 02/30/2022 would not be valid;
- Check the input, if the user writes various written numbers... example in photo...
I set the inputMask and Format properties to 99/99/9999 and "D". I tried to write the valid() of the field, but I still haven't succeeded..could someone help me to understand how to do it usually?