Dear all,
I have noticed a very strange behavior when validating an input using regex
which is specified as an integer in the bind. When the bind is described as;
The validation always fails, even if the correct data eg. 007 or 999 is
entered. Validation only passes when the type is changed to a string, like;
I noticed this a while back and I didn't the time to do serious debugging
and troubleshooting until now.
Is this by design or is it that it's late in the evening and it has been a
long day for me 
Regards
Kihara Absolomon :: Software Developer :: Movert Technologies :: +254 7
26
567 797 :: http://soloincc.movert.co.ke/
···
-----------------------------------------------------------------------------------------------------------------------------------------------
"Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning." - Rick Cook
Kihara,
7 is the integer form of 007. So even if you enter 007, the field will be
stored with a 7 -- and the 7 is what will be validated. Your best bet is to
leave the field as a string.
Best,
Chris
···
On Mon, Mar 3, 2014 at 1:13 PM, Wangoru Kihara wrote:
Dear all,
I have noticed a very strange behavior when validating an input using
regex which is specified as an integer in the bind. When the bind is
described as;
The validation always fails, even if the correct data eg. 007 or 999 is
entered. Validation only passes when the type is changed to a string, like;
I noticed this a while back and I didn't the time to do serious debugging
and troubleshooting until now.
Is this by design or is it that it's late in the evening and it has been a
long day for me 
Regards
Kihara Absolomon :: Software Developer :: Movert Technologies :: +254 7
26
567 797 :: http://soloincc.movert.co.ke/
"Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning." - Rick Cook
--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Chris,
Thanks. It is surely the end of a long day. time to log off.
Wangoruh Kihara