devxlogo

Tip Bank

List boxes

Question: How can I put the output of a do-while loop in a list box then delete it for the next run?ex.o=0do (o=o+1)Randomize timerx=rnd( * 6)+1z=x*4Print z to loop Answer:

Java and Unix

Question: Is it possible to use Java to execute a command on Unix and get the output from that command? Answer: Yes. The java.lang.Runtime class has various exec() methods thatcan

Piping External Process Output

Question: I am attempting to run a series of externalapplications within JAVA. I need the resultsof the prev. application piped as input to thefollowup application. I understand the spawningof the

Generating Beep

Question: I want to alert the user of my application withan ASCII 7 bell character. When I run the application from a prompt and use System.out.println((char)7) I get the result

Deprecated API

Question: When I compile my applets or applications, the compiler often tells me I’d use a “deprecated API” and that I should recompile with the option “-deprecate”. If I do

Borland Database Engine

Question: Many companies offer Borland Database Engine replacements claiming to be smaller and faster. What does the BDE offer that these replacements don’t? Is there a good reason to keep

Which VB for me?

Question: I wish to create my own Windows program for a kart racing club that we can enter all the drivers for a race meeting, draw a grid for the

Finding Whole Words in a TextArea

Question: How do I find whole words in TextAreas? I have an application that is suppose to find particular words in a paragraph to see if you use certain words