CultureInfo object

  • Thread starter Thread starter John A Grandy
  • Start date Start date
J

John A Grandy

what's the full class hierarchy for the CultureInfo object in effect by
default ?
 
* "John A Grandy said:
what's the full class hierarchy for the CultureInfo object in effect by
default ?

'System.Globalization.CultureInfo'
 
the NumberFormat type is not available for declarations via this class
hierarchy :

Dim MyNumberFormat As System.Globalization.CultureInfo.NumberFormat

what is the proper class hierarchy for declaring a reference of type
NumberFormat ?
 
* "John A Grandy said:
the NumberFormat type is not available for declarations via this class
hierarchy :

Dim MyNumberFormat As System.Globalization.CultureInfo.NumberFormat

what is the proper class hierarchy for declaring a reference of type
NumberFormat ?

There is no 'NumberFormat' class, you can use 'NumberFormatInfo'
instead.
 
How are you getting the CultureInfo object?
This is important because number/currency/date formats are valid only if you
have a fully-qualified culture (region & language), for example, "en-US" or
"fr-CA". Neutral cultureinfo instances (ones that only have language, such
as "en", or "fr", and no region) or invariant cultureinfo instances have
absolutely no formatting or parsing information. For example, a culture-info
instance based on "en" can't have date or number formatting rules, because
formatting can be different between the many English-speaking regions of the
world.

-Rob
 
Back
Top