Wrox Programmer Forums
|
Pro VB.NET 2002/2003 For advanced Visual Basic coders working .NET version 2002/2003. Beginning-level questions will be redirected to other forums, including Beginning VB.NET.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 11th, 2005, 10:57 PM
Registered User
 
Join Date: Jul 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default [important]rowfilter

Hi,
can anyone please try to filter the following data using rowfilter and see whether it works or not.
Note: Have to escape [ and ].So, [ is written as [[] and ] is written as []]. All the data is stored as NVARCHAR not VARCHAR.

i'm using visual basic.net V1.1.

When the data are stored as unicode, the rowfilter works properly. However, when tehd ata are stored
as NVARCHAR, the rowfilter is not working properly. Is is it because the data are stored as
NVARCHAR that makes rowfilter doesn't works properly?

Three records in the database are:
1# [1222 -2201 ÀÒÉÒä·Âà¾×èÍ¡ÒÃÊ×èÍÊÒÃ]
3# [1212 - 2200 ÇÔ·ÂÒÈÒʵÃì¾×é¹°Ò¹ ]
12# [1122 - 3201 ÇÔ¶Õ¸ÃÃÁÇÔ¶Õä·Â ]

Let say i want to get the third record with one of the string below, i can get the desired data.
'%12%'
'%12#%'
'%[[]%'
'%[]]%'
'%[[]1122%'
'%[[]1122 - 3201 ÇÔ¶Õ¸ÃÃÁÇÔ¶Õä·Â []]%'
'%#%'
'%-%'
'%ÇÔ¶Õ¸ÃÃÁÇ%'


However, i can't get the third record if i use one of thestring below.
'%# %' (a space after #)
'%# [[]%'
'%12# [[]%'
'%12# %' (a space after #)
'%# [[]1122%'
'%12# [[]1122 - 3201 ÇÔ¶Õ¸ÃÃÁÇÔ¶Õä·Â []]%'

I think that the reason the rowfilter can't get the correct record is because the # is the reserved word.So, i'm finding the escape letter for #. I can't find any help in MSDN. I also tried [#] and \# but they didn't work.

Can you help me?:(







Similar Threads
Thread Thread Starter Forum Replies Last Post
Help - RowFilter r_taduri ASP.NET 2.0 Professional 0 July 13th, 2006 04:39 AM
VB starter kit - Rowfilter code doesn't work Bucephalus VB Databases Basics 0 May 26th, 2006 05:56 PM
How to filter Date field using DataView.RowFilter jkusmanto VB.NET 2002/2003 Basics 1 April 18th, 2006 12:48 AM
Rowfilter in Visual Basic.Net ahooi Pro VB.NET 2002/2003 0 July 5th, 2005 03:58 AM
Rowfilter in Visual Basic.Net ahooi ASP.NET 1.0 and 1.1 Basics 0 July 5th, 2005 03:51 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.