I need to check if a particular point in a sting "line" has any value in it or not. I know that the string will be composed of numbers, so I have tried using :
I know that this is an awkward way of doing this, and it doesn't work! If the string is empty by the time I get to this point, I get a NumberformatException error. Can anyone suggest a way I can check if a substing is not null? This HAS GOT to be simple!?!
Gyula Klinszky
Greenhorn
Joined: Jan 20, 2003
Posts: 27
posted
0
Try checking the length of said string !
Layne Lund
Ranch Hand
Joined: Dec 06, 2001
Posts: 3061
posted
0
You should break each function call into its own line. This would help simplify things drastically. HTH Layne