DelphiBasics
  Home  |  Delphi .net Home  |  System.Globalization NameSpace
 .NET Framework
 Namespace References

 System
 System.Collections
 System.Globalization
 
  Calendar  Class 
  CalendarWeekRule  Enumeration 
  CultureInfo  Class 
  CultureTypes  Enumeration 
  DateTimeFormatInfo  Class 
  DateTimeStyles  Enumeration 
  NumberFormatInfo  Class 
  NumberStyles  Enumeration 
  RegionInfo  Class 
  StringInfo  Class 
  TextElementEnumerator  Class 
  TextInfo  Class 
 System.Drawing - download only
 System.IO

 Articles and Tutorials

 Overview of .NET
 Delphi and .NET
 Winform Applications
 ASP .Net Applications
 php Web Services
 Framework Collections
 Framework String Handling
 Framework Files and Folders


 
 
  System.Globalization.NumberStyles Enumeration
 
 Description
The .Net number structures, such as System.Double provide a Parse method to convert a number represented as a string into the appropriate numeric value.
 
The NumerStyles enumeration is used in these Parse methods to control this conversion process.
 Values
AllowLeadingWhite  1  Leading white space characters aer ignored
AllowTrailingWhite  2  Trailing white space characters aer ignored
AllowLeadingSign  4  Leading - or + sign is allowed
AllowTrailingSign  8  Trailing - or + sign is allowed (as defined by NumberFormatInfo)
AllowParentheses  16  Allow the number to be enclosed by brackets
AllowDecimalPoint  32  Allow the number to contain a decmal point (as defined by NumberFormatInfo)
AllowThousands  64  Allow thousands separators (as defined by NumberFormatInfo)
AllowExponent  128  Allow scientific exponent format
AllowCurrencySymbol  256  The string is parsed as a currency value if it contains a currency symbol (as defined by NumberFormatInfo)
AllowHexSpecifier  512  The number is treated as a hexadecimal number. It must not be prefixed by 0x
Number  111  Combination used for general number parsing
Any  511  All but the hexadecimal style
HexNumber  515  As Number, but for hexadecimal numbers

 Delphi Basics links
 
System.Decimal
System.Double
System.Single
System.Int16
System.Int32
System.Int64
System.UInt16
System.UInt32
System.UInt64

 Microsoft MSDN links
 
System.Globalization
System.Globalization.numberstyles
 
Delphi Programming © Neil Moffatt . All rights reserved.  |  Home Page