We are an award-winning tech entrepreneurship website where trusted experts can provide value globally.

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.

devxlogo

Trusted for 26 years

Over 30K Articles

1M+ Readers

Expert-reviewed

10K+ Tech Terms

As seen in:

microsoft logo
business_insider_logo
wired_logo
berkley
arstechnica_logo
hackernoon

The Latest

DevX - Software Development Resource

Set Font Size in Tables Using DHTML

Question: In Microsoft Internet Explorer, I can specify a style as TABLE.listTable { font-size : “10pt”} and all the cells of the table will have a 10pt font size. In

DevX - Software Development Resource

Preserve the Format of Text/Memo Fields

Question: We are doing a small site with some ASP content. When we get data from a memo field that has CR/LFs at the end of the lines for formatting

DevX - Software Development Resource

Abstract Classes

Question: Can I instantiate an abstract class? Answer: No, you cannot instantiate an abstract class. However, you can declare a pointer or a reference to it: class Abs{public: virtual void

DevX - Software Development Resource

Display Contents of ADODB.Errors Collection

When ADO encounters an error, the Errors Collectionis filled with certain specific details on the causeof the error. You can check the Errors collection ofthe Connection object whenever you encounter

DevX - Software Development Resource

Always Use Option Explicit

You should always use Option Explicit statement in your .asp file. Thisstatement will enforce that you explicitly declare all the variables in thescript. The whole problem: VBScript allows you to

DevX - Software Development Resource

Always Prefer to Use Local Variables

You should always prefer to use Local variables. Local variables reside within functions and subs. They have local scope and limited lifetime. These variables are compiled into numeric references and

DevX - Software Development Resource

Display Greeting Message

Here is a simple way by which you can display a greeting message to a user at the time of login.There are certain scenarios where you can use thisfeature to

DevX - Software Development Resource

How to Instantiate a Template Correctly

The type that a template takes as an argument must have external linkage. This means that you cannot instantiate a template with a locally-declared type: int main(){ struct S {

DevX - Software Development Resource

What’s in a Signature?

A function’s signature consists of the function’s parameter list and the parameters’ ordering. A member function’s signature also includes the const/volatile qualifiers (if any) of that function. Signatures provide the

DevX - Software Development Resource

Determining Size of an INPUT Field

Question: How can I determine the maximum size of an INPUT field? Answer: Although you can certainly use JavaScript to find out the size of your user’s screen or the

DevX - Software Development Resource

Creating a “Browse for Folder” Dialog Box

Question: How can I create a “browse” facility in my application&#151something which throws up a dialog box that allows the user to view folders and select one, as in Microsoft

DevX - Software Development Resource

Declaring Data for an Object

Question: I’m trying to declare some data for an object such that, when necessary, other functions can use the object not only to perform member functions but also serve as

DevX - Software Development Resource

Maximum URL Length

Question: Is there a maximum URL length? One of my forms has a bunch of text fields on it so I am concerned that it might truncate when I pass

DevX - Software Development Resource

Numeric only TextField

Question: Is there is a way to create a text field that only accepts numeric input? Answer: There are probably a couple of a ways to go about doing this.

DevX - Software Development Resource

Prevent Certain Files From Being Bookmarked

Question: How can I prevent certain files on my site from being bookmarked? Answer: There is no way to fully prevent people from bookmarking a certain URL on your site.

DevX - Software Development Resource

Precise Division

Question: I have var1 and var2 both ints in a DB (only ints will be entered into var1, var2). But I want the result to show answer with decimal places:

DevX - Software Development Resource

Retrieving Data from a Text Field

Question: I have a table with a text field that stores a long description. When I use the Select statement to query the table, it only returns 255 characters. How

DevX - Software Development Resource

Insert Performance

Question: When I try to do a simple insert in a table with 25,000 records, it takes a long time do execute. In the same database for a table with

DevX - Software Development Resource

Create/Drop Table Problem

Question: When I execute this query: create table #T1 ( pk numeric( 9 ) ) drop table #T1 create table #T1 ( pk numeric( 9 ) ) drop table #T1

DevX - Software Development Resource

Track Changes on a Form

Question: I have an HTML page that is broken up into two different frames. The left frame acts as a navigation tool. The right frame is the user interface, which

DevX - Software Development Resource

Faxing a Report via WinFax Pro

Question: I want to output a report by Visual FoxPro 6.0 and fax it by WinFax Pro 9.0. I can output my report to an ASCII file which is then

DevX - Software Development Resource

Set DIV Clipping Height

Question: I am inserting some text into a DIV in Netscape using the .open, write(), and close() methods. At first there is nothing in the DIV, and when I check

DevX - Software Development Resource

Write concise code: a collection of simple tips

If you fully understand how VB and VBA work, you can often save some statements. This makes your listings more concise and more readable, and indirectly optimizes your program. Here

DevX - Software Development Resource

Write concise code with the InStr function

You can often use the Instr function in an unorthodox way to write more concise code. A typical example is when you need to test a single character: ‘ test

DevX - Software Development Resource

Write concise code with the IIf function

Use IIf when setting a value based upon an expression. This works only in situations where you have two choices, based upon the result of a Boolean expression. ‘long wayIf

DevX - Software Development Resource

Write concise code with Boolean expressions

When setting a Boolean value based upon the result of an expression, avoid using an unnecessary If/Then/Else structure. ‘Instead of using this lengthy syntax . . .If SomeVar > SomeOtherVar