This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Masked edit field question
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 25, 2008
01:03 PM
Masked edit field question
I'm creating a custom dialog with a masked edit field. I'm not sure what to use in the mask.
Right now it is <#####-#####-#####-#####-#####>
this work but only lets me enter numbers. What should I use for Alphanumeric in the mask?
Right now it is <#####-#####-#####-#####-#####>
this work but only lets me enter numbers. What should I use for Alphanumeric in the mask?
(9) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 25, 2008
01:49 PM
Try using <^^^^^-^^^^^-^^^^^-^^^^^-^^^^^>
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 27, 2008
11:00 AM
That mask will still let me enter in %^&* and charators like that. Is there a way to mask out those? I just want letters and numbers.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 27, 2008
11:46 AM
You are correct, this format allows all characters. So you just want a limited set [0-9][A-Z][a-z], correct?
Unfortunately I have not found a way to implement a mask that does this. I just have to check the results and report back to the user that they entered an illegal character.
Unfortunately I have not found a way to implement a mask that does this. I just have to check the results and report back to the user that they entered an illegal character.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 27, 2008
12:00 PM
I went back to the instructions for the Masked Edit control on MSDN and I am a bit confused by the instructions.
Look at this quote:
Our use of the carrot symbol, ^, does not force upper case characters, so perhaps my understanding of the rules is incorrect.
Hopefully Robert or Michael can chime in on this.
I am wondering if the following would work <@^#^@^# ... >
Look at this quote:
The alternate digit, %, and alternate alphanumeric characters, ^, ?, and ` fields allow custom actions to differentiate between fields in a way that can be controlled by the mask, for example, ^ can be used for fields that should be uppercase.
Our use of the carrot symbol, ^, does not force upper case characters, so perhaps my understanding of the rules is incorrect.
Hopefully Robert or Michael can chime in on this.
I am wondering if the following would work <@^#^@^# ... >
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 27, 2008
01:13 PM
There was another post a while ago concerning this that I found:
http://community.macrovision.com/showthread.php?t=138101&highlight=Masked+Edit
Unfortunately it came to the same conclusion is that the masked edit control does not provide the level of filter needed to limit this to strict alphanumeric characters [0-9][a-zA-Z]. Too bad they did not support regular expressions for a filter that would be the best type of implementation.
http://community.macrovision.com/showthread.php?t=138101&highlight=Masked+Edit
Unfortunately it came to the same conclusion is that the masked edit control does not provide the level of filter needed to limit this to strict alphanumeric characters [0-9][a-zA-Z]. Too bad they did not support regular expressions for a filter that would be the best type of implementation.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 27, 2008
01:14 PM
I normally write installs in installscript and can do most anything there but my company wants me to look at converting to MSI installs.
I know in installscript and can make the fields do what I want them to do.
I know in installscript and can make the fields do what I want them to do.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 27, 2008
01:16 PM
Well, with IS2009 and windows installer 4.5 support of the embedded UI you could use an InstallScript UI if that is acceptable to the company.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 27, 2008
03:19 PM
Where can I get info on the embedded UI stuff?
I have been closed into installscript for so long I feel like I'm new to installs when I start working with MSI and windows installer.
I have been closed into installscript for so long I feel like I'm new to installs when I start working with MSI and windows installer.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 27, 2008
03:34 PM
For a start, please see "Using the InstallScript Engine as an External vs. Embedded UI Handler for InstallScript MSI Installations" in the InstallShield 2009 help.