Wrox Programmer Forums
Beginning Visual Basic 2012
This is the forum to discuss the Wrox book Beginning Visual Basic 2012 by Bryan Newsome; ISBN: 978-1-118-31181-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning Visual Basic 2012 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 June 27th, 2013, 09:50 AM
Registered User
Join Date: Jun 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ch 5 - sorted/ing arrays

While going through chapter 5, I'm seeing something that isn't making too much sense, or at least isn't explained.
The frist 4 "Try it Out" sections work the way i would think. The 5th "Sorting Arrays" works correctly, but when you are still debugging and you click on one of the frist four, the array is still sorted.
so when you click the "reversing an array" button after sorting it, its a revers of the sort, not of the array as entered.

as if the "ClearList" doesn't really clear the array list. you have to stop and restart in order to reverse sort correctly.
(confused yet?)
Is it once sorted, always sorted?
Old July 18th, 2013, 10:52 PM
Wrox Author
Join Date: Mar 2006
Posts: 91
Thanks: 0
Thanked 5 Times in 5 Posts

I am not sure I understand. It reverses the current array in memory that you are calling the function with. The book has an accidental comment on the reverse line so you have to remove the comment. If you download the code it is correct in the download.


Similar Threads
Thread Thread Starter Forum Replies Last Post
connect ing to sql 2005 twisted f8 Visual Basic 2005 Basics 1 September 13th, 2007 09:47 PM
folder lock-ing in ASP tiahvera Classic ASP Basics 2 May 7th, 2007 01:12 AM
Ch 5 Arrays Pg 134 Sadlowski BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 2 February 23rd, 2006 01:25 PM
"And" ing Regular Expression DizzieDazz BOOK: Beginning Regular Expressions 2 March 16th, 2005 12:25 PM
track ing hits on web pages bsc12 Classic ASP Basics 2 September 8th, 2004 12:24 PM

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