Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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 February 14th, 2011, 04:46 AM
Authorized User
 
Join Date: Apr 2008
Posts: 35
Thanks: 1
Thanked 0 Times in 0 Posts
Default Help with String.Array

I have built an array, as follows

Code:
 
Dim aPages(8) As String
aPages(0) = 1
aPages(1) = 2
aPages(2) = 3
aPages(3) = MaxPages - 2
aPages(4) = MaxPages - 1
aPages(5) = MaxPages
aPages(6) = Math.Max(CurrentPage - 1, 0)
aPages(7) = CurrentPage
aPages(8) = Math.Min(CurrentPage + 1, MaxPages)
Keeping things as simple as possible, I need to remove any duplicates from the list and to sort the list.

Any help appreciated
__________________
Regards,

Sean





Similar Threads
Thread Thread Starter Forum Replies Last Post
Convering a String Array to an Integer array nkrust C# 9 November 17th, 2010 12:02 PM
String to array ajit Javascript 5 January 20th, 2007 04:02 PM
Casting String array to string Samatha ASP.NET 1.0 and 1.1 Professional 1 December 5th, 2006 07:46 AM
Duplicate Array value/string .NETamateur C# 3 November 3rd, 2006 08:58 AM
String to Array Psion PHP How-To 1 September 5th, 2006 11:36 AM





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