Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 24th, 2008, 08: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.
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 07: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



All times are GMT -4. The time now is 06:58 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.