|
From: Angelopoulos, K. <Kon...@ap...> - 2003-02-03 03:03:02
|
Hi Guys, Im wanting to update the faqs and introduce a tutorial for phpESP but need some clarification on the numeric question type and the use of the precision and length fields. As I see it, and please let me know if this is incorrect, when the length is specified for a numeric question type both the size of the text box and the maxlength are affected. This is also true when only the precision field is specified/set. Example. I want the user to submit a number that has no more than 5 digits so I set the precision to 5 hoping that the maxlength is set at 5 but what really happens is that the 5 (precision) is added to the default length (which is 10) and 1 is added to allow for the number to be signed so in actual fact the maxlength ends up being 16. Furthermore the length field is also changed to 16. I can understand adding 1 to allow for sign but what's the purpose of adding the length to the precision? Is precision meant to be used to indicate the number of decimal places? Also am I right in saying that the only other question types where length and precision have any affect are for the rate(scale 1..5)type, the text box type and the essay box type with the date type having a noneditable default length of 10 and precision of 10? Kon Angelopoulos eMerging Technologies Developer Spherion Group Limited "Making the Workplace Work Better" Level 1 493 St Kilda Road Melbourne VIC 3004 +61 3 92432336 Kon...@ap... The information contained in this email and any attachments to it: (a) may be confidential and if you are not the intended recipient, any interference with, use, disclosure or copying of this material is unauthorised and prohibited; and (b) may contain personal information of the recipient and/or the sender as defined under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to collect, hold and use such information and any personal information contained in a response to this email, for any reasonable purpose in the ordinary course of Spherion's business, including forwarding this email internally or disclosing it to a third party. All personal information collected by Spherion will be handled in accordance with Spherion's Privacy Policy. If you have received this email in error, please notify the sender and delete it. (c) you agree not to employ or arrange employment for any candidate(s) supplied in this email and any attachments without first entering into a contractual agreement with Spherion. You further agree not to divulge any information contained in this document to any person(s) or entities without the express permission of Spherion. |