Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional 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 November 28th, 2011, 10:29 AM
Authorized User
 
Join Date: Apr 2007
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Default Filter query strings that are empty

I need to filter out query strings that are empty that is posted from a previous page.

I am using
For Each item In My_Array
Response.Write("<br>" & item)
Next

to get all variables listed, but it also displays variables that are empty. I need to display variables that exists.

can you help?
 
Old January 31st, 2012, 06:23 PM
J_P J_P is offline
Authorized User
 
Join Date: May 2009
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
Default

try this

For Each item In My_Array
if not IsEmpty(item) then Response.Write("<br>" & item)
Next

can also try IsNull(item) or len(item) > 0





Similar Threads
Thread Thread Starter Forum Replies Last Post
query strings problem saroo .NET Framework 2.0 1 October 23rd, 2007 06:41 AM
How to display Filter Strings in Report Header Jabba007 Access VBA 7 July 17th, 2007 12:07 PM
0, Empty Strings and Null Loralee Access 8 August 10th, 2005 10:13 PM
Query Strings ldoodle Classic ASP Basics 3 June 7th, 2005 03:45 AM
hiding Query Strings mase912 C# 1 November 30th, 2004 06:17 AM





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