-
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?
-
That is because Maskedit2.text is a string
and the mask "9999" resets the string value to null
-
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??