Solved

collecting data(string) and parshing results

Posted on 1998-07-08
2
192 Views
Last Modified: 2010-04-16
I am currently working on a informix user interface and am having problems with the slected text.  I want to preparse the text before it goes to the results window (not showing the value "null" when there is no text.
0
Comment
Question by:spowers
2 Comments
 
LVL 5

Expert Comment

by:msmolyak
ID: 1225588
You mean, you want to analyze the results of a query before displaying them? What seems to be the problem? Are you using JDBC to interact with Informix? If, so you can iterate through the result set to see what's in it.
0
 
LVL 2

Accepted Solution

by:
threshold earned 50 total points
ID: 1225589
Take data from Database, check it, and display it... if you means that...

TextArea ta;
String data;
...
// get data from Informix via JDBC
......
// got data!
if (data==null) data="";
ta.setText(data);

0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to implement Singleton Design Pattern in Java.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now