Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional Visual Basic 2008 ISBN: 978-0-470-19136-1
This is the forum to discuss the Wrox book Professional Visual Basic 2008 by Bill Evjen, Billy Hollis, Bill Sheldon, Kent Sharkey; ISBN: 9780470191361
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Visual Basic 2008 ISBN: 978-0-470-19136-1 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
  #1 (permalink)  
Old December 24th, 2008, 09:13 AM
Authorized User
 
Join Date: Dec 2008
Location: Keyport, NJ 07735
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs down Page 36 errata

"In addition to mandatory parameters, which must be passed with a call to a given function, it is possible to declare optional paramaters. Optional parameters can be omitted by the calling code. This way, it is possible to call a method such as RedRight, passing either a single parameter defining the length of the string and using the default of space for the padding character, or with two parameters, the first still defining the lenght of the string but the secon now replacing the default of space with a dash."

Code:
Public Function PadRight(ByVal intSize as Integer, _
            Optional ByVal chrPad as Char = " "c)
End Function
The optional parameter in the can be any value of type char not just a dash, and no where in the examples is a dash passed as a parameter.
__________________
Need free one on one help getting started with Visual Basic? Contact me via http://patrickcambria.com its free.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Errata for Page 235 corncrake BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 4 June 30th, 2008 04:51 AM
ERRATA on page 388 NadAf BOOK: Ivor Horton's Beginning Visual C++ 2005 0 August 15th, 2007 09:40 PM
Errata Page 664 Chrisull BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 November 24th, 2005 08:36 AM
Errata Page bonehead BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 2 June 27th, 2004 08:45 AM





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