Page 1 of 1
Zip Code validation
Posted: Mon Jun 11, 2007 10:05 am
by swarovski
I want to write some simple scripts to validate Zip Code on a dialog.
I have set the max length = 5
Which functions should I use to allow user only input digit?
Thanks in advance!
Re: Zip Code validation
Posted: Fri Jun 15, 2007 4:22 am
by swarovski
swarovski wrote:I want to write some simple scripts to validate Zip Code on a dialog.
I have set the max length = 5
Which functions should I use to allow user only input digit?
Thanks in advance!
I have given up the validation.
And currently using a mask edit box.
prevent user from input letters..
Posted: Sun Jun 24, 2007 6:05 am
by swarovski
_regValidateZipCode = $_regZipCode$ + 0
if Variable _regValidateZipCode Equals
Set Variable _regValidateResult to $_regValidateResult$$NEWLINE$- Zip Code <invalid>
end
I am glad I found this method.
main idea is using mathematics function.
a valid number will always return a number
else will return empty string