Solved

Set value in a masked edit box.... -- Easy 500!!! --

Posted on 2006-07-05
4
192 Views
Last Modified: 2008-03-06
Im trying to set a value in a maked edit box.... I keep getting an Invalid property Value

Mask = "$0.00"
Format = "$#,##0.00"

Trying to set the value in code with txtRefundGst = 0 where txtRefundGst  is the MEB

HEEEELLLLPPPP!!!!!



0
Comment
Question by:ExtremeFitness
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 17044125

It's not clear what you expect. The mask of $0.00 means that that is the only value that is legal. Try $#.##.
Also you must conform to the mask. Manually it will beep at you, Programatically it raises an error.

So you need
txtRefundGst.Text = "$0.00"
0
 
LVL 2

Author Comment

by:ExtremeFitness
ID: 17044146
Im trying to ver any valid currency.....  
0
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 500 total points
ID: 17044322
If you are only going to fill it programatically, it would be easier to have a blank Mask.

The format will still work.
txtRefundGst.Text = 1.234
will display as $1.23 if you keep the Format as "$#,##0.00"

If not, you might want to use a mask that is at least as long as the Format:
$9,99#.##
Would be a good match.


0
 
LVL 2

Author Comment

by:ExtremeFitness
ID: 17044452
Ok maybe the Masked edit box is not for me... :)
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month3 days, 11 hours left to enroll

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question