Posted: Tue Jan 13, 2004 10:27 am Post subject: String arrays in String return methods
I am using a string array in a return method, but I can't get it to work.
Assistance is needed. Below is my code.
It is for the purpose of checking if a postal code is typed in correctly. I have a global string array called pcode [6] and the string array thats used in the return method is checkPcode []
Posted: Tue Jan 13, 2004 7:25 pm Post subject: (No subject)
wow thats a lot of code u got there. id suggest u use a for loop instead of that huge if statement.
wtd
Posted: Mon Feb 09, 2004 11:43 am Post subject: (No subject)
Or at least put the validation into a separate function/method which in turns uses a loop. This also looks like a good place to use a regular expression.