Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / ADO.NET / May 2005

Tip: Looking for answers? Try searching our database.

How to format a rowfilter which includes quote characters...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DK - 16 May 2005 17:29 GMT
How canI format the text in a rowfilter expression for a DataView object
which contains a quote mark...is there a special escape character? or what?

For example, "Album = 'One's too many'"

Thanks
Elton W - 16 May 2005 18:30 GMT
Hi DK,

You can use double quotes to escape single quote.

Dataview.RowFilter = "Album = 'One''s too many'”

HTH

Elton Wang
elton_wang@hotmail.com

> How canI format the text in a rowfilter expression for a DataView object
> which contains a quote mark...is there a special escape character? or what?
>
> For example, "Album = 'One's too many'"
>
> Thanks
Cor Ligthert - 16 May 2005 19:15 GMT
What is in VBNet two quotes.

> You can use double quotes to escape single quote.
>
> Dataview.RowFilter = "Album = 'One''s too many'"

What is in VBNet two double quotes in the code.
Elton W - 17 May 2005 00:07 GMT
Hi Cor,

I don't understand your question.

If you mean following:

Dim str As String = "It's 2"" width."

The str is It's 2" width.

Elton

>-----Original Message-----
>What is in VBNet two quotes.
[quoted text clipped - 6 lines]
>
>.
Cor Ligthert - 17 May 2005 06:57 GMT
Elton,

Just wrong English.

A single quote has to be written in VBNet as 2 double quotes.

Thanks for pointing me on that.

Cor

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.