| || |
Verifying Field Limits function/method
I was just curious if anyone knew of a function/method the exists which can be used to verify field limits.
I have a window with many text fields, each having a different min/max value. If entering a value < min or > max and clicking a button you get a messagebox explaining value invalid.
I have written a function to do this test by putting my data in a list. Just curious if there is another function that exists or if anyone has any better ideas on this kind of test.
Re: Verifying Field Limits function/method
Sounds like you did it the way I would have...maybe a list containing the following fields in each record...
Then iterate thru the list...do a SetText or TypeKeys to that window to put in a value larger than max or smaller than min, then see if you get the message.
Always a good thing, in these circumstances, to test the boundary itself (i.e., iMax) as well as iMax + 1 and iMax - 1.
If the numbers are decimal, use number instead of integer.