Solved

Strip delimiters from Comments field

Posted on 2009-05-18
3
316 Views
Last Modified: 2013-11-27
Hi, I have a field returned in a report that points to =Fields!Comments.Value
This is a multiline field from Sharepoint.  When it is returned, the values are wrapped by <div> </div> Respectively if there is a value. eg.

<div>This is a comments test.</div>
Is there a way to strip the <div>/<div> to retun only what inbetween?
eg. This is a comments test.
0
Comment
Question by:DEN_Jimbo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 6

Expert Comment

by:bull_rider
ID: 24413607
0
 

Author Comment

by:DEN_Jimbo
ID: 24413767
I am not sure how this would help.  I believe We have SQL2008 and I am using vs2005 to build the report.  I don't have access to upgrade or do anything on the server.  Isn't there a way to manipulate or strip the field?
0
 
LVL 16

Accepted Solution

by:
Auric1983 earned 250 total points
ID: 24423807
You could look at using the "replace" command and replace the <div> or </div> string with "" 
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL trigger 5 34
sql2016-WIn10: standard,for SQL servc-account.. 51 44
MS SQL Conditional WHERE clause 3 38
Update one rows based on previous row 5 30
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question