Topic: Comma Test
Answers to Common Questions
How to test on one number in a comma delimited numbered string?
List functions can be finicky about spaces in between elements. If needed, use replace() to remove extra spaces first. <cfset theList = "1,7,8, 14, 16"> <cfset theList = replace(theList, " ", "", "all")> <cfif listFind(theList, "6"... Read More »
Source: http://www.experts-exchange.com/Q_22605950.htm
How can I query a comma delimited test file?
You can't "query" a text file as it is not a database engine. All you can do is sort through the information sequentially and stop at the point you are interested in. The only next stup up from what you've done is to suck the file into a di... Read More »
Source: http://www.experts-exchange.com/Q_22028273.htm
How to test Text Field Validate a comma exists in a field
var value = document.getElementById('id-of-the-form-field').value // or: var value = document.getElementsByName('name-of-the-form-field')[0].value if(value.indexOf(',') > -1) { // value contains a comma } If this is not what you want, you h... Read More »
Source: http://stackoverflow.com/questions/2956362/how-to-test-text-field...
Want A Personal Answer?
1,016,546 people are answering.
About - Privacy - AskEraser - Advertise - Careers - Ask Blog - iPhone - Android - Help - Feedback ©2012 Ask.com