Tip Bank

DevX - Software Development Resource

Retain Values in a Page in ASP

Question: Is there any way to retain values in a page (text box, check box, radio, and so on) after going to some other page and coming back? I don’t

DevX - Software Development Resource

Global Variables

Question: One of the things left out of Java that we had in C++ wasglobal variables. Is there a way to use global variables in Java? Answer: Even though Java

DevX - Software Development Resource

Nonblocking I/O

Question: Say I have 10 sockets and I want to have a thread which checks for a message from the sockets using their InputStreams. The thread will wait in the

DevX - Software Development Resource

Foreign Keys

Question: How do I temporarily disable foreign keys in a table, insert more rows, and then enable them again? In particular, I need to know about syntax and what the

DevX - Software Development Resource

List Selection Actions

Question: When someone selects one item on my list, I want an inputfield to appear next to it. How do I do this? Answer: Rather than provide you with the

DevX - Software Development Resource

Killing a Form

Question: Is there a way for me to kill, destroy, release, or otherwise cancel a form that has hung, without quitting the current instance of Visual FoxPro? I’ve tried practically

DevX - Software Development Resource

Catching Exceptions

Question: Do you have to individually catch each exception that a method maythrow? Or can you just have one generalized catch?For example, can I do this?: try{ method1 //which throws

DevX - Software Development Resource

Encryption Classes

Question: Are there any standard classes for performing one-way encryption ofstrings (e.g., passwords) in Java, similar to crypt() on Unix systems? Answer: The Java core APIs do not include an

DevX - Software Development Resource

Capturing KeyEvents

Question: How can I capture KeyEvents in a Frame that doesn’thave any TextFields or TextAreas? Answer: To enable a particular AWTEvent in a Component it suffices to add alistener for