Tip Bank

DevX - Software Development Resource

Error When Performing Inserts on SQL Server

Question: When inserting data into a table that has an identity column that is also the key, the following error occurs: Non-Blob column in table is required to perform operation.

DevX - Software Development Resource

strchr

Question: Where can I see the source code to the functionstrchr? Answer: If you purchase a compiler such as the professional edition of VC++, the source code for all run-time

DevX - Software Development Resource

First Visible List Row

Question: Is there a way to find out the first visible row in a List? Answer: The standard AWT java.awt.List class does not provide a means for determining the first

DevX - Software Development Resource

Variable Declaration

Question: I understand that Java variables can be declared public, private, or protected using a similar syntax as C/C++ where the access modifier is placed before the column of variables.

DevX - Software Development Resource

IE Does Not Support Netscape’s Layer Tag

Question: I know that Netscape supports layers in JavaScript. Is there any way to make them work in Microsoft Internet Explorer 4 or 5? Answer: Unfortunately, no. Microsoft and Netscape

DevX - Software Development Resource

Generating a Compiler Warning

Question: I am looking for a way to get the javac compiler to generate a warning message that I specify in my code when it is compiling my code. I

DevX - Software Development Resource

Interface

Question: What’s an interface in Java programming? Answer: Conceptually, an interface is a class that defines a set of methods with no implementation. It is analagous to a pure virtual

DevX - Software Development Resource

Power Script

Question: I am reading in an external data file using i_file = fileopen (“c:dataamt.dat”, linemode!,read!) fileread (i_file, filelines) fileclose (i_file) How would you avoid hardcoding the data file so that

DevX - Software Development Resource

Relational Database vs Flatfile

Question: My company is in the process of evaluating packages to replace our current business application. All but one of them run on a relational database architecture. The other one