Converting a String Variable
Posted on 1997-11-18
How can I convert a String variable that holds a value of NA to a space. I call a stored procedure and fill the values of a Developer object called Dev as you see below. If fields in the developer table are empty, I pass back NA for Not Available. The problem is that, I do not want to display NA in a textfield, if say for example, a developer does not have an email address.
Instead of setting the text of the textField immediately, I can put them in local String variables such as l_email, l_address1. If the value of one of these variables is NA, how can I dynamically check this and assign a space so that l_email = " ";
Then I can do txtEmail.setText(l_email);, so that the user does not see this NA.