Re: runtime error with Mask edit control




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..
: >
: >
:
:

.



Relevant Pages

  • Re: mailmerge with txtfile
    ... I did not recognise the format as DIF. ... My assumption is that Excel does not know what to do with the LABEL ... Then go into the Open Data Source dialog (Select Data Source in Word ...
    (microsoft.public.word.mailmerge.fields)
  • Re: labels using macros
    ... creates his Prouduct ID tag. ... as listed in the label tag. ... DWG. ... The problem they are in a set format. ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Re: who fires wickedly, when Kareem schedules the stale invasion alongside the jury
    ... The format subject to the traditional pier is the white that ... Rifaat regards the sensitive seal very initially? ... Whoever remove the neat label and replace it in spite of its ...
    (sci.crypt)
  • Re: Group Control
    ... A label formatted with Special Effect set to Raised resembles a command ... Could you just format the label as Raised, ...
    (microsoft.public.access.formscoding)
  • Re: labels using macros
    ... creates his Prouduct ID tag. ... as listed in the label tag. ... DWG. ... The problem they are in a set format. ...
    (microsoft.public.word.mailmerge.fields)

Loading