Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Maskedbox - error 308 invalid property value 1

Status
Not open for further replies.

GBall

Programmer
Joined
May 23, 2001
Messages
193
Location
GB
Hi
I'm using VB6 SP5 and I am getting this error when I try to populate the masked edit box with a value.
According to MSKB, this was a known problem in VB4, but has been fixed.
The daft thing is that it was working fine under VB6/SP5 a few months ago, but the .exe stopped working properly when I had my machine rebuilt after a crash.
I have just reinstalled VB6/SP5 and the source no longer works either.
This shouldn't be happening.
Can anyone help ?

Regards,
Graham
 
A lot of times the invalid property value is caused by a mask that no longer fits the value format. One case I can think of is the date format in regional settings set as a four digit year and the mask set to accept a two digit year entry (##/##/##). To fix this I use the format() function to 'shape' the data to fit the mask before I populate it.



Mark
 
On the money, Mark !!!
Turns out that the new standard build for new (rebuilt) PCs is dd/mm/yyyy.
Hadn't used the application in a while, so the two events didn't ring any bells.
Thanks.

Regards,
Graham
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top