Re: runtime error with Mask edit control
- From: "Randy Birch" <rgb_removethis@xxxxxxxx>
- Date: Thu, 1 Sep 2005 21:50:39 -0400
Yes, but as MikeD says, it's better not to presume a user's date is in a
specific format. This will change the date, but it is a system-wide change.
In a corporate environment this is an acceptable practice, where sysadmins
require all users to conform to corporate standards. But mess with a home
user's computer and watch them uninstall the app PDQ.
http://vbnet.mvps.org/code/locale/setlocaleinfo.htm
--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
----------------------------------------------------------------------------
Read. Decide. Sign the petition to Microsoft.
http://classicvb.org/petition/
----------------------------------------------------------------------------
"WB" <none> wrote in message news:uTuAQuzrFHA.2596@xxxxxxxxxxxxxxxxxxxxxxx
: Thanks for the suggestions, it was the system date format causing the
: error.
:
: Is there a way for me to check the system date format and set it to the
: correct value for the application?
:
: WB
:
: "Ken Halter" <Ken_Halter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
: news:OuMdgjzrFHA.3264@xxxxxxxxxxxxxxxxxxxxxxx
: > "WB" <none> wrote in message
news:uWBWzVzrFHA.464@xxxxxxxxxxxxxxxxxxxxxxx
: > > HI
: > > I have a mask edit control displaying a date from a database record.
On
: > > my
: > > development machine using vb 6.0 I do not get any errors when I run
the
: > > application from the IDE; however, when I compile and package the
: > > application and then install on a different machine it errors when
: trying
: > > to
: > > fill the mask edit control with a date. Error #380 invalid property
: > > value.
: > >
: > > I don't understand why the error message only appears on the packaged
: > > software and not on the development machine.
: > >
: > > Suggestions?
: > >
: > > WB
: > >
: >
: > Temporarily place a label or textbox near that masked edit box and store
: the
: > date in both places (label or textbox first), that way, you can see the
: > difference. There may be some strange date format "on a different
: machine".
: >
: > --
: > Ken Halter - MS-MVP-VB - http://www.vbsight.com
: > DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
: > Please keep all discussions in the groups..
: >
: >
:
:
.
- References:
- runtime error with Mask edit control
- From: WB
- Re: runtime error with Mask edit control
- From: Ken Halter
- Re: runtime error with Mask edit control
- From: WB
- runtime error with Mask edit control
- Prev by Date: Re: runtime error with Mask edit control
- Next by Date: MSChart Control
- Previous by thread: Re: runtime error with Mask edit control
- Next by thread: MSChart Control
- Index(es):
Relevant Pages
|
Loading