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

String to Float

Question: How do I add two label values together and submit the answer to another label? Label19.Caption := FloatToStrF(Table1Standard.AsFloat,ffCurrency,15,2)Label20.Caption := FloatToStrF(Table1Zero.AsFloat,ffCurrency,15,2)Label21.Caption := StrToFloat(????????? Answer: This is one of those things

DevX - Software Development Resource

Convert Delphi to C++?

Question: How can you convert Delphi to C++? Answer: I don’t know of any conversion tools out there that do this, though I could be wrong. If you’re using both

DevX - Software Development Resource

OverwriteHandler – A class for handling overwrite mode

‘———————————————————‘ OverwriteHandler class” you can associate this class to a form, using the’ Form property, and all the textbox controls in the’ form will support insert/overwrite mode switching” Usage: Dim

DevX - Software Development Resource

Polymorphic array procedures

You can create “polymorphic” routines that work with any type of array (except arrays of fixed-length strings, or UDTs) by using Variant parameters. Take for example the following code: Function

DevX - Software Development Resource

Use function name as a local variable

Many programmers don’t realize that it is perfectly legal to use the name of a function inside the Function itself, as if it were a local variable. This trick often

DevX - Software Development Resource

Quickly build a simple About form

If you need a quick-and-dirty About dialog box for your application, that maintains a consistent look with other Windows applications, look no further than the ShellAbout routine in SHELL32.DLL. Using

DevX - Software Development Resource

Return a Dos error code on exit

At times you may want to return a Dos ErrorLevel when closing your VB application. This can be necessary, for example, if the EXE is meant to be called from

DevX - Software Development Resource

Count How Many Items Have Been Selected

The SELECT element includes an options array that is accessible from JavaScript. You can use a loop to iterate through this array and count how many choices the user has

DevX - Software Development Resource

What is a Side Effect?

The Standard defines a side effect as a change in the state of the execution environment. Modifying an object, accessing a volatile object, invoking a library I/O function, or calling

DevX - Software Development Resource

Using “Sentry Bytes” to Detect Memory Overruns

One of the most frustrating aspects of debugging is detecting memory overruns. Some compilers (MS Visual C++ for instance) automatically add “sentry bytes” at the ends of every memory block

DevX - Software Development Resource

Use the Conditional Operator Judiciously

The conditional operator,?, is a shorthand for a sequence of if-else statements. Although it has legitimate uses, in many cases programmers tend to misuse it, thereby producing unintelligible and buggy

DevX - Software Development Resource

Perform Some Common Database Chores

These several database functions work together and perform various utility functions, such as checking if fields and tables exist, creating fields and tables, and so on. The interface hides all

DevX - Software Development Resource

Password Protect an Access Database

For simple Microsoft Access security, set the database password from the Security item under the Tools menu in Access, select Set Database Password, and enter a password. To use the

DevX - Software Development Resource

Generate Random Strings

This code helps test SQL functions or other string-manipulation routines so you can generate random strings. You can generate random-length strings with random characters and set ASCII bounds, both upper

DevX - Software Development Resource

Use Name Parameters With Oracle Stored Procedures

When executing an Oracle stored procedure, use the named parameter convention. In place of this code: OraDatabase.ExecuteSQL _ (“Begin Employee.GetEmpName (:EMPNO, :ENAME); end;”) Use this code:OraDatabase.ExecuteSQL (“Begin Employee.GetEmpName _ (empno=>:EMPNO,

DevX - Software Development Resource

Check Whether Password Includes a Number

Question: How can I check if the password that a user inputs has at least one numeric character? Answer: The best way to check whether what the user has entered

DevX - Software Development Resource

Manipulate the Last Active Textbox

Question: I want to use a form that contains a set of textboxes and a set of buttons. When I push a button, I want to manipulate the last active

DevX - Software Development Resource

Using ASP and VBScript

Question: I am developing an application using VBScript and ASP. I wrote this HTML code to be executed on a client’s machine:

DevX - Software Development Resource

Accessing Database from Web Server

Question: I have added a data connection in Visual Interdev. In the Data View I can see all my tables, fields and so on. My database resides on a SQL

DevX - Software Development Resource

Underlining Links on Mouse Over Only

Question: When I add a hyperlink to an ASP page, the link appears underlined. How can I remove the underline from the link? I only want the line to appear

DevX - Software Development Resource

Updating Multiple Rows with Forms in HTML

Question: We are only able to add one row in the database, using forms in HTML. How can we do multirow operations on the HTML before sending it to the

DevX - Software Development Resource

Invalid Operator for Data Type

Question: I am getting this error message: Invalid operator for data type. Operator equals subtract, type equals varchar. What does this mean? Answer: It means you are doing subtraction on

DevX - Software Development Resource

Checking Net Speed

Question: Is there a script that can gauge site visitors’ net connection speed and route them to the proper link? In particular, I’d like to “auto link” my real video

DevX - Software Development Resource

Convert a Little Endian to a Big Endian

Java uses a big endian data structure, but Intel-based computers and some others use a little endian format. You may run into problems reading binary data saved in little endian