F
focode
i have a form in which their are textFields when the user set his data
in that form and press next button i get all the data in form of
string , then i have to check if any field was left empty , if it is
so the application sends the user back to the form to fill the
required field , my problem is i have the value of the textField in
form of string , how will i know that this string contains nothing , i
used compareTo fuction i which the first parameter was string from the
textField and the second parameter i ahve taken an another string
which is null eg
String str = null;
int value = textFIeldString.compareTo(str);
but this throws exception
tell some other way to implement this ..
thanks and regards
Arunesh
in that form and press next button i get all the data in form of
string , then i have to check if any field was left empty , if it is
so the application sends the user back to the form to fill the
required field , my problem is i have the value of the textField in
form of string , how will i know that this string contains nothing , i
used compareTo fuction i which the first parameter was string from the
textField and the second parameter i ahve taken an another string
which is null eg
String str = null;
int value = textFIeldString.compareTo(str);
but this throws exception
tell some other way to implement this ..
thanks and regards
Arunesh