Jun 2, 2006 #1 SuperTime Programmer Dec 21, 2004 183 US Crystal 9, Sql database I have a String field in the database 38870,38891,38894,38898,39037,39044, I want read this field and count the numbers in the string . so i want to get the number 6 in the above example. How can i do that in a formula
Crystal 9, Sql database I have a String field in the database 38870,38891,38894,38898,39037,39044, I want read this field and count the numbers in the string . so i want to get the number 6 in the above example. How can i do that in a formula
Jun 2, 2006 #2 Turkbear Technical User Mar 22, 2002 8,631 US Hi, If the string is always separated by commas, then create an array and check # of entries: This should do it: @howmany Code: UBound(Split({YOURSTRINGFIELD},',')) To Paraphrase:"The Help you get is proportional to the Help you give.." Upvote 0 Downvote
Hi, If the string is always separated by commas, then create an array and check # of entries: This should do it: @howmany Code: UBound(Split({YOURSTRINGFIELD},',')) To Paraphrase:"The Help you get is proportional to the Help you give.."
Jun 2, 2006 #3 synapsevampire Programmer Mar 23, 2002 20,180 US Since the last number in your example has a comma after it, you'll need to subtract one. UBound(Split({YOURSTRINGFIELD},','))-1 -k Upvote 0 Downvote
Since the last number in your example has a comma after it, you'll need to subtract one. UBound(Split({YOURSTRINGFIELD},','))-1 -k
Jun 2, 2006 #4 Turkbear Technical User Mar 22, 2002 8,631 US Hi, Nice catch, synapse - and on a Friday afternoon as well..I'm impressed.... To Paraphrase:"The Help you get is proportional to the Help you give.." Upvote 0 Downvote
Hi, Nice catch, synapse - and on a Friday afternoon as well..I'm impressed.... To Paraphrase:"The Help you get is proportional to the Help you give.."
Jun 2, 2006 #5 synapsevampire Programmer Mar 23, 2002 20,180 US Probably a typo anyway, Turk, just thought I'd mention it. -k Upvote 0 Downvote