Campbell Ritchie wrote:Do you have a regular expression for the phone numbers?
Ryan O'Neill wrote:This isn't the method I am referencing...
How do I do that?
if you're using a GUI by running your code in debug mode and putting a breakpoint there.
Paul Clapham wrote:you declared newPhone as an instance variable and then redeclared it as a local variable somewhere. Hiding variables like that can easily lead to confusion.
Ryan O'Neill wrote:NewPhone contains a string, so it is not null.