Results 1 to 2 of 2

Thread: Mask Edit Box

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Pakistan
    Posts
    436

    Mask Edit Box

    I am using MaskEdibBox in my form and i placed mask like 9.999
    when i want to retrieve data from table in MaskEditBox vb generates error if digists quantity is different. for example, data saved is 1.2 , and also mask edit box does not display value 9

    kindly tell me how i should program with numeric inputs box

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    When setting the Text property, if the PromptInclude property is True, you must specify all characters. For example, using your sample, MaskEdBox1.Text = "1.2__".

    That is more trouble than it is worth so set the property to False before setting the Text value and set it back afterwards.

    MaskEdBox1.PromptInclude = False
    MaskEdBox1.Text = "1.2"
    MaskEdBox1.PromptInclude = True

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