Length validation of Edit box or Masked Edit box - Advanced Installer Community
sanjaydalvi
Posts: 7
Joined: Tue Sep 10, 2013 3:35 pm

Length validation of Edit box or Masked Edit box

Hi;

I need some help regarding a problem of Length validation of Edit box or Masked Edit box.

My requirement is to verify length of Edit box or Masked Edit box and it must be 4 letters, if user enters less than 4; I should prompt user with appropriate dialog box.

Can any one let me know is there any property available for this validation? Any help in this regards is much appreciated.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Length validation of Edit box or Masked Edit box

Hello,

There's no predefined way to do this in Advanced Installer but you can run a custom action when the user presses the Next button. Depending on the validation you can proceed to the next dialog or display a message box.

Here's a .VBS length validation sample.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sanjaydalvi
Posts: 7
Joined: Tue Sep 10, 2013 3:35 pm

Re: Length validation of Edit box or Masked Edit box

Thanks Mihai.. I'll look into the examples.. seemz promising.. Gr8 help.. thanks again

Return to “Common Problems”