Wrox Programmer Forums
|
BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer
This is the forum to discuss the Wrox book Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer by Rod Stephens; ISBN: 9780470596906
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer 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 6th, 2012, 08:27 AM
Authorized User
 
Join Date: Jan 2012
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Lesson 18 - TryIt

For Lesson 18 - TryIt,

In your code, you have NumberStyles.any;

Where is the NumberStyles from?

When I typed it, the VS2010 doesn't find where to associate it with.

Thanks.
 
Old June 6th, 2012, 10:30 AM
Rod Stephens's Avatar
Wrox Author
 
Join Date: Jan 2006
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
Default

Sorry about that. It's common in examples on the Internet and in books to include only the code of central interest so things are sometimes dropped and you need to download the example or do some research to fill in the gaps.

In this case, there should be a using statement at the top of the file to include the System.Globalization namespace. So add this to the top of the file:
using System.Globalization;
Then I think you'll be okay.
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 11 TryIt Luthios BOOK: Java Programming 24-Hour Trainer by Yakov Fain 8 March 3rd, 2012 01:57 PM
TryIt 32 zavodney BOOK: Stephens' Visual Basic Programming 24-Hour Trainer 5 October 13th, 2011 11:33 AM
Lesson 36 Tryit Mark P. BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer 4 October 11th, 2011 02:49 PM
Chapter 24 Tryit objects not showing up Mark P. BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer 6 June 24th, 2011 02:15 AM
Chapter 10 Tryit Mark P. BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer 3 June 20th, 2011 08:20 PM





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