Tip Bank

DevX - Software Development Resource

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

DevX - Software Development Resource

Locking a Row

Question: How can I lock a row in a table from a stored procedure? Answer: You shouldn’t have to worry about locking. It’s done automatically by the engine when you

DevX - Software Development Resource

Informix Backups Error Message

Question: We have Informix IDS 7.30 running under SCO 5.0.5. Backups by ontape fail with an error: “I/O read chunk 90, pagenum 2, pagecnt 1 –> errno = 9″But when

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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() //

DevX - Software Development Resource

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

DevX - Software Development Resource

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