[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 206
  • Last Modified:

MaskEDbox help

dear sir,

l just know how to use the MaskEDbox to read the value,but is it possible to give and display the value on MaskEDbox control ?consider following example, 123 will be display on textbox control, what about MaskEDbox ?

text1 = 123

from: Eddie
godace@rocketmail.com
0
EddieAng
Asked:
EddieAng
  • 2
  • 2
1 Solution
 
clifABBCommented:
I'm sorry, but I'm not understanding your question.
Please be more specific.
0
 
bin_huwairibCommented:
Yes EddieAng you can display the value on MaskEDbox.

Example:
MaskEdBox1 = 123
0
 
EddieAngAuthor Commented:
Bin huwairib,

but if l setted the mask = "##-##" then it would be error, is it not support the mask on output ?consider the following code.

'first of all, l setted the mask ="###-###"
'then give the value to display

maskedbox1=123456
0
 
clifABBCommented:
OK, now I understand.

Set the property PromptInclude = False

You can then assign values using the text property:

MaskEdBox1.Mask = "### ###"
MaskEdBox1.PromptInclude = False
MaskEdBox1.Text = 12345

Will Produce the following results:
123 45_
0
 
EddieAngAuthor Commented:
yes it is worked, thank everyone !
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now