devxlogo

Tip Bank

Designing Custom Forms

Question: Is it possible to make changes to the text on the tabs? Answer: Sure, with the tab you want to change selected, just click Form > Rename This Page.

Upgrading from AIX 4.2 to AIX 4.3

Question: We have plans to upgrade our AIX operating system to version 4.3. We are using Informix 7.31. Do we need any new Informix components (compilers etc.)? Answer: You probably

Form Validation

Question: I need to perform a validation on five fields in a form. The logic is: If field1 length >0 then disallow form submission if field2,field3, field4, and field5 are

Image Changeovers

Question: I have seen plenty of text on script dealing with mouseovers, or ‘animation’ where an image can change every few seconds, but is there a way I can write

Pop-up Window with Links to New Pages

Question: I want to set up a series of links in a pop-up window which, when clicked, will (a) close the popup window and (b) redirect the main page to

Checking the State of a Stream

The iostream family of classes provides the following member functions and operators for checking the stream’s state: bool good() // returns true if no error flag is setbool eof() //

Comma Separated Expressions

An expression may consist of one or more subexpressions. You can group several expressions in one statement and separate them with commas. For example: if(++x, –y, cin.good()) // three expressions

The Semantics of const_iterator

A recent subscriber of one of the C++ newsgroups posted the following question:Why did the C++ standardization committee created a const_iterator instead of a const iterator? Or, at least, why

Treating a Vector As an Array

In certain contexts, you have to treat a vector as an array of its elements. For example, suppose you have a function that takes int * as its argument. How