[cgiapp] Validation constraint

2006-02-28 Thread Robert Hicks
I am trying out the ValidateRM plugin. I have it working with one form which is cool. The second form I have deals with hours worked on a project. The hours are put in by increments of .25 (i.e. it could be .50 or 7.75). I know I can check this with the mod ( % ) operator but I haven't a clue

Re: [cgiapp] Validation constraint

2006-02-28 Thread Jason Purdy
Robert Hicks wrote: I am trying out the ValidateRM plugin. I have it working with one form which is cool. The second form I have deals with hours worked on a project. The hours are put in by increments of .25 (i.e. it could be .50 or 7.75). I know I can check this with the mod ( % ) operator

Re: [cgiapp] Validation constraint

2006-02-28 Thread Michael Peters
Jason Purdy wrote: Robert Hicks wrote: I am trying out the ValidateRM plugin. I have it working with one form which is cool. The second form I have deals with hours worked on a project. The hours are put in by increments of .25 (i.e. it could be .50 or 7.75). I know I can check this

Re: [cgiapp] Validation constraint

2006-02-28 Thread Ron Savage
On Tue, 28 Feb 2006 10:37:14 -0500, Michael Peters wrote: Hi Michael I know it's untested, but you can't use % with non-integer numbers. I see 2 possible solutions, one regex based, the other using a subroutine (my example shows the higher-order subroutines that the new DFV 4.0 likes).

Re: [cgiapp] Validation constraint

2006-02-28 Thread Michael Peters
Ron Savage wrote: On Tue, 28 Feb 2006 10:37:14 -0500, Michael Peters wrote: Hi Michael I know it's untested, but you can't use % with non-integer numbers. I see 2 possible solutions, one regex based, the other using a subroutine (my example shows the higher-order subroutines that the new