Archive: Custom Page Question


Custom Page Question
Hi guys

I'm using Custom Page to get from a user its username and password.

My problem is that I want to make sure the user enters only characters and numbers in the user field. I mean I don't want the user to write @ in his username. Is there some easy way to do it?

Thanks.


I think you can check the input in the Leave Function of your Custom Page.
If the string contains invalid charactors, then use the Abort Instruction to hold on this Page and give user prompt to reset.

Hope this helps.


You can use one of these:
http://nsis.sourceforge.net/StrCSpn%...for_characters

-Stu