
Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.
The following will replace all single quotes in a SQL statement [CHR(39)] with anapostrophe [CHR(180)]. This is useful if you are trying to add names to adatabase as parameter values
The standard function template std::numeric_limits (defined in < limits >) returns the implementation-dependent number of digits that a certain type has: #include int main(){std::numeric_limits < float >::digits10; //6 on my
If you work with SQL Server or Oracle you at some point probably will need todetermine your unique connection identifier. For SQL Server, the connectionidentifier is called a Server Process
When granting permissions through roles, it is important to know that rolesare disabled while packages are compiled. For example, consider two schemas: User_A and User_B. Let’s create Role_A: CREATE ROLE
Question: I want to validate a form so that three radio buttons may be checked, but no more. This will be used in a “what are your top three choices”
Question: Why does Java accept function declarations like public void func(); but not declarations like public void func(void); Answer: Java is not C. Despite the similar syntax, all C idioms
Question: When loading a web page, I need to have JavaScript look at the browser it is loading into, and if it is not version 5 (Internet Explorer 5), I
Question: Can I retrieve the position of the mouse on the screen? I need to know the X and Y coordinates because I want to position a layer at that
Question: Can I create multi-dimensional arrays in JavaScript? Do you have an example? Answer: Yes and no. You can’t create multi-dimensional arrays (as such) in JavaScript. What you can do
Question: We need to create a view based on about 1600 tables. One of the problems is that we cannot enter all of the query into the buffer because the
Question: In a code I’m developing, I am getting a “can’t find project or library” error message when it gets to the following functions: Chr(), Right(), Left(). Aren’t these VB
Question: What is the SocketImpl class used for? Answer: SocketImpl is an abstract class that provides an interface for customizing socket implementations. Subclasses of SocketImpl are not intended to be
Question: What is the difference between an interface and an abstract class? Answer: Within the confines of Java syntax, an interface is a type that only defines abstract methods and
Question: Both Enterprise JavaBeans and Servlets are server side components. What are the major differences between them? Specifically, what is the difference between a Session Bean and a Servlet? Answer:
Question: Is it possible to send an object over a socket connection in Java? Answer: Objects can be transmitted over a socket connection in the same way that they are
Question: What is delegation and how can I use it? Could you please give an example of a simple delegation technique? Answer: Delegation is a technique where one object directly
Question: I am new to JavaScript, but familiar with a variety of other languages. I don’t quite understand what the following variable declarations do: ns4 = (document.layers)? true:falseie4 = (document.all)?
Question: I’m working for a local newspaper, and we are writing a survey to see the type of technology our viewers are currently using to access the site. Is there
Question: Is there a way to prevent users from using the VIEW/SOURCE to view the HTML in my pages? I need to have this for a form that uses sensitive
Question: In the current Web project I have been working on, I have some links on my page which execute a JavaScript function. With this JavaScript function, I open up
Question: I’m opening a file for reading, and after reading its contents I write it all to other file. Now I want to delete the original file. How do I
Question: Is there code to reload a whole page when it is resized? The page with the layers is nested in a frame which is opened in other page. When
Question: How can I get out the value of a blob to print out on a web page using Java? I am using a cursor to get out all the
Question: Is Java platform-dependent where the case sensitivity of filenames is concerned? In Unix, filenames are case sensitive whereas in Windows they are not. How does it work when Java
Question: How can I dynamically load a class and call its constructor which has a primitive data type as one of its parameters? Answer: Using reflection to dynamically instantiate a
Question: Is the JDBC Connection class thread safe? In other words, can a connection be shared between multiple threads without using synchronization? Answer: java.sql.Connection is actually an interface and not
You can determine whether an Access table or query, accessed via RECORDSET OBJECT, contains any record by examining the boolean type BOFand EOF propertyof that RECORDSET OBJECT. If the RECORDSET
Question: Can we exchange data between Visual Basic and Microsoft Project? If so, what is the object model for Microsoft Project? Answer: The MS Project object model is as large
Question: I have an existing .exe file that creates files, archives, and restores. I need to find out how to edit that existing program so as to update some changes.
Question: I need to convert this fairly simple VBScript to a JavaScript? The purpose of the script is to cause a posted seminar event to disappear after the date of









