CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2001
    Posts
    1

    using masket edit Box with percents

    I have a masked edit box that I want to allow end users to enter a value from 0 to 100 percent (database column type = real) i.e. 50 or 45.67 etc...

    What format and mask properties should I use?

    Thank you in advance!!


  2. #2
    Join Date
    Aug 2000
    Location
    NY, USA
    Posts
    632

    Re: using masket edit Box with percents

    Based on your description, I think you don't need to use MaskEdit control. MaskEdit is used, when the format of data is always the same, and you want to enter 50 or 100, and database contains 50 or 45.67. So, what format is correct? 2 places, 3 or 4? It's better to allow to enter any numeric data and before saving, or after control lost focus, to change data format as required.

    Vlad


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured