[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
RE: [sqr-users] quickest way to count how many commas are in a string
- Subject: RE: [sqr-users] quickest way to count how many commas are in a string
- From: "the dragon" <ceprn@hotmail.com>
- Date: Fri, 13 Oct 2006 08:03:39 -0500
- Bcc:
- Delivery-date: Fri, 13 Oct 2006 09:07:03 -0400
- In-reply-to: <F0652A9934B81649B13293685D1945E904AC91BA@WHQNT60.AAM.NET>
- List-id: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." <sqr-users.sqrug.org>
I guess my question is why would you need this? A comma deliminated file
should always have the same number of commas in it, for every row. If not,
you wouldn't really know what data goes with what variable anyway, and that
statement goes if you don't know how many commas are in the row of data.
If I have the row Clark, the dragon, Willis, 48, PeopleSloth Admin and any
of those commas were missing, I wouldn't know what values would get placed
into the corresponding variables, because I would never know which comma was
missing.
peace,
clark 'the dragon' willis
PSA: Salary <> Slavery. If you earn a salary, your employer is renting your
services for 40 hours a week, not purchasing your soul. Your time is the
only real finite asset that you have, and once used it can never be
recovered, so don't waste it by giving it away.
I work to live; I don't live to work.
"Time is the coin of your life. It is the only coin you have, and only you
can determine how it will be spent. Be careful lest you let other people
spend it for you."
Carl Sandburg
(1878 - 1967)
----Original Message Follows----
I have a string called $selectlist
I need to know how many commas are in it.
Once I know I can unstring it by commas into the right number of
variables and then use those variables
What is the simplest way to get a count of the commas?
Thanks!
_________________________________________________________________
The next generation of Search—say hello!
http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&FORM=WLMTAG
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users