The Latest

DevX - Software Development Resource

Submitting a Form with the Enter Key

Using the IE browser application, you can press the key while filling a form to submit the form. Indeed, this is a desirable feature for any Windows application. In order

DevX - Software Development Resource

What Are Design Patterns?

A design pattern is a design solution to a software problem that occurs within a specific, recurring set of situations. Let’s say you are making software for a problem situation

DevX - Software Development Resource

Building a Rotating Banner Ad with JavaScript

Banner ads are common on any commercial site these days. But most of them use mechanisms like Server Push, Serve-side objects, or even services of third parties to rotate the

DevX - Software Development Resource

Identify Atomic and Non-Atomic Operations

In Java, the reading and writing of 32-bit or smaller quantities are guaranteed to be atomic. By atomic we mean each action takes place in one step and cannot be

DevX - Software Development Resource

Use Asynchronicity for Speed

If you need to run a complicated query that returns a large recordset, ADO 2.1 gives you the best of both worlds. Sometimes you just need to put a recordset

DevX - Software Development Resource

Delete All Records in a Table

If you find yourself repeating the same Execute method in different parts of your code when clearing tables, use this method instead to automate the process. When you already have

DevX - Software Development Resource

Scrolling DIVs

These days, most Web developers are discouraged from using frames (with good reason). However, users still like the functionality they provide. FRAME and IFRAME are handy scrolling containers, but you

DevX - Software Development Resource

Binary Search Routine For RDO

RDO does not have a FindFirst or Seek method, and as a programmer, you sometimes need to quickly move to a particular record. I had a user who wanted to

DevX - Software Development Resource

Preventing Client Caching

You may want to make sure that a client visiting your site cannot cache a particular Web page. However, setting the Response.Expires=0 does not always prevent a browser from caching

DevX - Software Development Resource

Add a Scripting Engine to Your Application

It’s easy to add scripting functionality to your VB project, especially if you have been developing through classes all along. The more classes you program, the more objects you can

DevX - Software Development Resource

Connect to Microsoft Excel Using OLE DB

Microsoft documentation says you can connect to Excel 97 or Excel 2000 using the Microsoft.Jet.OLEDB 4.0 provider. If you use the Microsoft ADO Data Control, however, you will have problems.

DevX - Software Development Resource

Conversion of Unix Epoch Time in SQL

Question: How do I convert the Unix epoch time into a readable date/time format? Answer: Informix doesn’t have a built-in function that I know of for this. However, a function

DevX - Software Development Resource

Changing Database Names

Question: How do I change the name of a database? Answer: From another database, maybe sysmaster, type: RENAME DATABASE oldname TO newname. Related Posts Apple declines as iPhone 16 sales

DevX - Software Development Resource

Change Comma-Separated Strings to Arrays

You can use the Visual Basic split function to convert a comma-separated string to an array. The function allows you to send a string as an IN parameter of a

DevX - Software Development Resource

Conditional Compiling and Project References

Question: I am trying to support an application that needs to support DAO 3.51 and 3.6.How do I insert a project reference like this as a conditional compiler option? Answer:

DevX - Software Development Resource

Linking Forms

Question: How do I use a CommandButton to link Forms? Answer: The Show method of a form can be used to show a second form from within another. Related Posts

DevX - Software Development Resource

WAP SDK on Macintosh

Question: Is there a WAP SDK emulator available for the Mac platform? Answer: In a perfect WORE (Write Once, Run Everywhere) world, the Java-based emulators should run on Macintosh. I’m

DevX - Software Development Resource

WML With JSP and JavaBeans

Question: How do I create a simple WML application with JSP and Beans? Answer: Be sure to set your content output type appropriately and just have it generate the WML.

DevX - Software Development Resource

Variable Within Quotation

Question: Can you put a variable within quotations?For example: Shell “Explorer.exe (?var)” Answer: You have to concatenate the two strings together. If your variable is named var, you would call

DevX - Software Development Resource

Sort Date in Descending Order

Question: My SQL statement at the moment is: SELECT * FROM NewsItemsHow do I sort the dates in descending order? Answer: Use the ORDER BY clause to sort the results

DevX - Software Development Resource

Include Files in VB 6.0

Question: Is it possible in VB 6.0 to include pieces of code through an include- or importstatement like the C #include-preprocessor command or the Cobol copy-statement? Answer: You can add

DevX - Software Development Resource

Group by Score with IIF()

Question: What can I use in SQL that does the same thing that IIF(test,TruePart,FalsePart) does in Access? Answer: You can achieve the same result using the aggregate function COUNT and