Coast Line
asked on
string breakup options
I have a following string
INCISE SPINE 3 COLUMN ADL SEGücertified~12/12/2012
ücertified - This thing can be like ücertified, ünoncertified, üpending
so i am trying to remove all characters from right starting from ü
2. Another way i tried using listfirst, tried using a function inside the query like
<cfquery name="GetTitles" DATASOURCE="#dsn#">
SELECT ArticleID,Title,{fn ListFirst(mystring,'ü')} as mystring
FROM News
ORDER BY DatePosted
</cfquery>
also, what if i need to separate this string into 3 different variables, 1 - string , 2 - the status [certified,noncertified, date], 3- date
INCISE SPINE 3 COLUMN ADL SEGücertified~12/12/2012
ücertified - This thing can be like ücertified, ünoncertified, üpending
so i am trying to remove all characters from right starting from ü
2. Another way i tried using listfirst, tried using a function inside the query like
<cfquery name="GetTitles" DATASOURCE="#dsn#">
SELECT ArticleID,Title,{fn ListFirst(mystring,'ü')} as mystring
FROM News
ORDER BY DatePosted
</cfquery>
also, what if i need to separate this string into 3 different variables, 1 - string , 2 - the status [certified,noncertified, date], 3- date
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
but what if i need to remove those values starting from ü~ onwards
Split it on the "ü" and grab the first part. But that's what the code above does. The results would be:
theString = INCISE SPINE 3 COLUMN ADL SEG <=== everything before the ü
theStatus = certified
theDate = 12/12/2012
theString = INCISE SPINE 3 COLUMN ADL SEG <=== everything before the ü
theStatus = certified
theDate = 12/12/2012
ASKER
how i forgot the GetToken
i will try and get back asap