How to Work with Numeric and String Data

Slides:



Advertisements
Similar presentations
Murach’s ASP.NET 4/C#, C6© 2011, Mike Murach & Associates, Inc.Slide 1.
Advertisements

Murach’s C# 2010, C6 © 2010, Mike Murach & Associates, Inc.Slide 1.
Murach’s SQL Server 2008, C6© 2008, Mike Murach & Associates, Inc.Slide 1.
Murach, Chapter 6. Murach’s Visual Basic 2008, C6© 2008, Mike Murach & Associates, Inc. Slide 2.
SQL for SQL Server, C6© 2002, Mike Murach & Associates, Inc.Slide 1.
Murach’s C# 2010, C3 © 2010, Mike Murach & Associates, Inc.Slide 1.
Murach’s ASP.NET 4/C#, C3© 2011, Mike Murach & Associates, Inc.Slide 1.
Murach’s ASP.NET 2.0/C#, C3© 2006, Mike Murach & Associates, Inc.Slide 1.
Murach's MySQL, C3© 2012, Mike Murach & Associates, Inc.Slide 1.
Murach's C# 2012, C3© 2013, Mike Murach & Associates, Inc.Slide 1.
Murach’s JavaScript, C2© 2009, Mike Murach & Associates, Inc. Slide 1.
Murach’s ASP.NET 4/C#, C2© 2011, Mike Murach & Associates, Inc.Slide 1.
Murach's PHP and MySQL, C2© 2010, Mike Murach & Associates, Inc.Slide 1.
Murach's MySQL, C2© 2012, Mike Murach & Associates, Inc.Slide 1.
Murach's PHP and MySQL, C2© 2010, Mike Murach & Associates, Inc.Slide 1.
Murach’s SQL Server 2008, C1© 2008, Mike Murach & Associates, Inc.Slide 1.
Murach’s JavaScript, C1© 2009, Mike Murach & Associates, Inc. Slide 1.
Murach’s C# 2010, C1© 2010, Mike Murach & Associates, Inc.Slide 1.
© 2013, Mike Murach & Associates, Inc.
Murach’s SQL Server 2008, C4© 2008, Mike Murach & Associates, Inc.Slide 1.
Murach’s C# 2010, C4 © 2010, Mike Murach & Associates, Inc.Slide 1.
Murach’s C# 2010, C4 © 2010, Mike Murach & Associates, Inc.Slide 1.
Murach's C , C4 © 2009, Mike Murach & Associates, Inc. Slide 1 © 2009, Mike Murach & Associates, Inc.Slide 1.
Murach’s ASP.NET 3.5/C#, C4© 2008, Mike Murach & Associates, Inc.Slide 1.
Murach's PHP and MySQL, C4© 2010, Mike Murach & Associates, Inc.Slide 1.
Murach's PHP and MySQL, C4© 2010, Mike Murach & Associates, Inc.Slide 1.
Murach’s Java SE 6, C6© 2007, Mike Murach & Associates, Inc.Slide 1.
Murach’s Java SE 6, C5© 2007, Mike Murach & Associates, Inc.Slide 1.
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 1.
Murach's C# 2012, C7© 2013, Mike Murach & Associates, Inc.Slide 1.
Murach's ASP.NET 4.5/C#, C3© 2013, Mike Murach & Associates, Inc.Slide 1.
© 2016, Mike Murach & Associates, Inc.
© 2009, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2011, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2011, Mike Murach & Associates, Inc.
© 2011, Mike Murach & Associates, Inc.
© 2011, Mike Murach & Associates, Inc.
© 2011, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2011, Mike Murach & Associates, Inc.
© 2003, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2011, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2011, Mike Murach & Associates, Inc.
© 2011, Mike Murach & Associates, Inc.
© 2011, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2011, Mike Murach & Associates, Inc.
© 2003, Mike Murach & Associates, Inc.
© 2011, Mike Murach & Associates, Inc.
© 2011, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2015, Mike Murach & Associates, Inc.
© 2015, Mike Murach & Associates, Inc.
© 2015, Mike Murach & Associates, Inc.
© 2011, Mike Murach & Associates, Inc.
© 2013, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2015, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2015, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2003, Mike Murach & Associates, Inc.
Presentation transcript:

How to Work with Numeric and String Data Murach, Chapter 4, Part III, pp. 116 - 126 9/23/2008

Two Data Types Value types : variables Reference types: variables Store their own data Are supported by a structure Reference types: variables Do not store their own data Store a reference to a memory location Two different string variables can reference the same string location. Supported by a class (object created from class) 9/23/2008

9/23/2008

9/23/2008

Murach’s Visual Basic 2008, C4 © 2008, Mike Murach & Associates, Inc.

Murach’s Visual Basic 2008, C4 © 2008, Mike Murach & Associates, Inc.

9/23/2008

9/23/2008

9/23/2008

Other ways to convert data types ToString method Parse method Shared methods of the Convert class 9/23/2008

Murach’s Visual Basic 2008, C4 © 2008, Mike Murach & Associates, Inc.

Murach’s Visual Basic 2008, C4 © 2008, Mike Murach & Associates, Inc.

Murach’s Visual Basic 2008, C4 © 2008, Mike Murach & Associates, Inc.

Murach’s Visual Basic 2008, C4 © 2008, Mike Murach & Associates, Inc.

Murach’s Visual Basic 2008, C4 © 2008, Mike Murach & Associates, Inc.

Other methods to convert numbers to formatted strings The ToString method with formatting codes The Format method of the String class Pp. 126 and 127 9/23/2008

Other chapter topics Variable Scope (on test) Enumeration (not on test) – defines a set of related constants. Nullable types (not on test) – useful for databases 9/23/2008

Optional practice Exercise 4-1 9/23/2008