Hi bradley36, Please note that I never used .Net/CLI, I'm just guessing what might be the cause.
On Wednesday, 2009-08-12 18:12:17 -0700, bradley36 wrote:
> Dim oLocale As unoidl.com.sun.star.lang.Locale
> [...]
> oLocale.Language = "en" ' ********* => this is the line 80 referred
> to in error detail
> oLocale.Country = "US"
> oLocale.Variant = "Traditional_WIN"
> Note that while entering code, before I execute, VB 2005 shows error message
> at line 80:
> oLocale is used before it has been assigned a value. A null reference
> exception could result at runtime. But line 80 does assign a value
It assigns a value to a member of oLocale. Maybe that's the difference.
Try to allocate an instance of Locale first, e.g.
oLocale = new unoidl.com.sun.star.lang.Locale
or however that is done.
A side note: you don't necessarily have to assign values to the locale,
an empty locale denotes the default locale as setup under
Tools->Options. Btw, variants currently are ignored.
Eike
--
OOo/SO Calc core developer. Number formatter stricken i18n transpositionizer.
SunSign 0x87F8D412 : 2F58 5236 DB02 F335 8304 7D6C 65C9 F9B5 87F8 D412
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't send personal mail to the [email protected] account, which I use for
mailing lists only and don't read from outside Sun. Use [email protected] Thanks.
pgpmVELvEN5rk.pgp
Description: PGP signature
