strAccountNumber = "8B345-7890";
arrAccountNumberTCA = strAccountNumber.toCharArray();
dump(var=arrAccountNumberTCA, label="strAccountNumber.toCharArray()");
echo("<p>");
for (itmTCA in arrAccountNumberTCA){
echo("isNumeric(#itmTCA#):" & isNumeric(itmTCA) & " (#itmTCA#)<br/>" );
}
echo("</p>");
echo("<p>");
intTCALen = Len(arrAccountNumberTCA);
loop index="i" from="1" to="#intTCALen#" {
echo("isNumeric(arrAccountNumberTCA[#i#]): " & isNumeric(arrAccountNumberTCA[i]) & " (#arrAccountNumberTCA[i]#)<br/>" );
}
echo("</p>");
strAccountNumber = "8B345-7890";
arrAccountNumberLTA = strAccountNumber.listToArray("");
dump(var=arrAccountNumberLTA, label="strAccountNumber.listToArray("""")");
echo("<p>");
for (itmLTA in arrAccountNumberLTA){
echo("isNumeric(#itmLTA#):" & isNumeric(itmLTA) & " (#itmLTA#)<br/>" );
}
echo("</p>");
echo("<p>");
intLTALen = Len(arrAccountNumberLTA);
loop index="i" from="1" to="#intLTALen#" {
echo("isNumeric(arrAccountNumberLTA[#i#]): " & isNumeric(arrAccountNumberLTA[i]) & " (#arrAccountNumberLTA[i]#)<br/>" );
}
echo("</p>");
strAccountNumber = "8B345-7890";
echo("<p>");
intStrLen = Len(strAccountNumber);
loop index="i" from="1" to="#intStrLen#" {
echo("isNumeric(Mid(strAccountNumber, #i#, 1)): " & isNumeric(Mid(strAccountNumber, i, 1)) & " (#Mid(strAccountNumber, i, 1)#)<br/>" );
}
echo("</p>");
Version | Lucee 4.5.3.018 final |
---|---|
OS | Mac OS X (10.11.6) 64bit |
---|---|
Remote IP | 127.0.0.1 |
Servlet Container | Apache Tomcat/8.0.15 |
Java | 1.8.0_66 (Oracle Corporation) 64bit |
Architecture | 64bit |
--
Get 10% off of the regular price for this years CFCamp in Munich, Germany (Oct. 20th & 21st) with the Lucee discount code Lucee@cfcamp. 189€ instead of 210€. Visit https://ti.to/cfcamp/cfcamp-2016/discount/Lucee@cfcamp
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/c691c4e0-8bf4-42db-92dd-6e1c3868dc15%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
listToArray( strAccountNumber, '' )
strAccountNumber.listToArray('')
--
Get 10% off of the regular price for this years CFCamp in Munich, Germany (Oct. 20th & 21st) with the Lucee discount code Lucee@cfcamp. 189€ instead of 210€. Visit https://ti.to/cfcamp/cfcamp-2016/discount/Lucee@cfcamp
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.
And by 'does not work in Lucee' I meant that it produces 'no' for isNumeric() when using the listToArray() member function, to clear up any confusion :)
--
Get 10% off of the regular price for this years CFCamp in Munich, Germany (Oct. 20th & 21st) with the Lucee discount code Lucee@cfcamp. 189€ instead of 210€. Visit https://ti.to/cfcamp/cfcamp-2016/discount/Lucee@cfcamp
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/9913b0f0-93ff-487c-ab1c-82e07b4762fb%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Lucee" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lucee/oHoKmaSxlGc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/CAG%2BEEBwMfNHjW6BX%3DeQ92-b0-CU73ge8En_X85o0peTzB50Y%3Dw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/CAGdgfvCpf42vH01_eANgcayUTdC%2Bw5ZuPvwTvv5AwKTwfgOd3w%40mail.gmail.com.