Results 1 to 3 of 3

Thread: MaskEdit control

  1. #1
    snip
    Guest
    hi, I need to copy a text from one MaskEdit control to another MaskEdit control
    I could do it by:

    MaskedEdit1.Mask = ""
    MaskedEdit1.Text = MaskedEdit2.Text

    However, when I set the Mask property to 999999 by:

    MaskedEdit1.Mask = "999999"

    then value dispear, if I don't set it, it is no longer
    a maskedit box, so how could I do it?

  2. #2
    Guest
    That is because Maskedit2.text is a string
    and the mask "9999" resets the string value to null

  3. #3
    Guest
    um... even if I write like this
    mskDeposit.Mask = ""
    mskDeposit.Text = 9999
    mskDeposit.Mask = "999999#"

    the result still be empty, i.e. I can't copy data from one MaskEdit to another
    MaskEdit with the same Mask values set??

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