
Java?
Question: I am looking for some way for ppl to sort info that I have in a table on my page. I have been told many many tiems that I

Question: I am looking for some way for ppl to sort info that I have in a table on my page. I have been told many many tiems that I

Question: How can I can reference the value of an object to use in a select statement? My statment is being used in a Visual Fox Pro application, andso far

DO recordsets have a handy little method called GetString that they inherited from RDO’s GetClipString. GetString returns the contents of a recordset into a formatted string. Here are three useful

o write UDP clients and servers, you have to use the DatagramSocket class. UDP is a connectionless protocol, so a UDP server doesn’t have to perform an accept() operation the

Question: How can I implement a hash table such that each “bucket” is associated with two independent keys?I need to be able to store two data per bucket that are

If your Java program requires a large amount of memory, it’s possible that the virtual machine will begin to throw OutOfMemoryError instances when attempting to instantiate objects. In some cases,

Technically, neatness doesn’t count in the world of HTML source code. However, nicely formatted source code makes debugging easier and adds a professional touch to your work. That’s why HTML

It is common to have a Web page that calls itself. On this page, you may want to have many buttons that will each produce a different call. An example

Frequently, a Web page or an FTP site has protected areas open only to those with a valid login. As you browse to the page, a form appears querying the

Parsing text is a common, complex operation. For example, your application might need to allow users to enter text and then break the text into separate words or sentences for

The C++ Standard now allows initialization of const static data members of an integral type inside their class. #include class Buff{private: static const int MAX = 512; //definition static const

The Visual InterDev 6 OptionGroup design-time control (DTC) provides several properties that you can set. These properties include whether or not to add a border around the group and whether

There are so many tools and techniques to detect the client’s browser type. However, if you want a quick two-minute solution or you just want something simple, use this code

Operator new performs two operations: it allocates memory from the free store, and it constructs an object on the allocated memory. The allocated memory doesn’t leak when an exception is

The One Definition Rule (ODR) says that an inline function has to be identically defined in every translation unit in which it is used. Two definitions contained in different translation

One of the most powerful new features of JavaScript 1.2 is a set of objects and methods to provide regular expression functionality. Perl programmers have relied on regular expressions for

In Java, you can propagate checked exceptions up a class hierarchy in two ways. First, you can declare the exception in the “throws” clause of the enclosing method. Second, you

It is legal to call a function that may throw an exception inside a destructor. However, it is important to handle any exception that might be thrown from such a

Using public inheritance with two classes that do not fully comply with the is-a relation (although they are related to one another) is a common design mistake. For example, deriving

Using a longjmp() in C++ is dangerous because it jumps out of a function, without unwinding the stack first. Consequently, destructors of local objects are not invoked. As a rule,

Use this function to determine whether a dynamic array has been dimensioned. I use dynamic arrays to store small, foreign key tables locally for fast lookups. Not wanting to load

You might need to determine whether a certain key is in a collection. The Collection object doesn’t provide a method to retrieve a key after you add an object to

The ListView Windows control has some additional features that haven’t been exposed in the OCX provided with VB. One feature can shrink or enlarge columns automatically to ensure that data

Forgetting the names of global variables is easy to do. You can solve this problem by letting VB remember the variables for you by making the variables into fields of

Using a Date literal is about 12 times faster-according to NuMega TrueTime-than using the CDate function and converting a string literal. Here’s an example: Dim TestDate as Date ‘The following

This subroutine lets the user perform look-ahead typing, as in Netscape Navigator, Microsoft Internet Explorer, and other apps. The sub takes an array of strings and a TextBox control as

When you use the Scripting Object Model (SOM) in Visual InterDev 6, keep in mind that the script library is biased towards JavaScript. Your perfectly valid VBScript may produce strange

Java simplifies I/O by providing a rich library of classes that support stream interfaces. Among these classes, the combination of PipedInputStream and PipedOutputtStream closely resembles a UNIX system “pipe.” The

Question: How can I convert integers to strings? I’m using a gcc compiler under Solaris 2.6. itoa, which I used in VC++, doesn’t work. By the way, how can I

Question: I am a beginner to C++ and have looked into several resources but still have some questions. Can you tell me what a void pointer is and what it