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

How to Reduce Compilation Time

Most compilers nowadays have several options that reduce compilation time considerably. These options include incremental build, precompiled header files, and cached header files. By default, these options are turned off.

DevX

Exe Pops Up and Closes Immediately

Question: I have written a simple application with one form. I compiled the project as an .exe. My exe works fine if I am inside VFP, but when I make

DevX

VFP Form Management

Question: How do I call a form from another form using a command button? Answer: You can put code into the Click event of the command button that executes a

DevX

Report in a Separate Window

Question: In a FoxPro 6.0 application, I want to be able to push a button anddisplay a report on the screen. This report should be displayed in a new window,

DevX

Calculating the Maximum of Three Values

The max() macro or template takes two values and returns the highest. What if you need to calculate the maximum of three values? You don’t need to write a special

DevX

Extending Error Object

Question: I want to create a system error object that will take care of system errors and database errors. Should I inherit it from the error object, or should I

DevX

Posting XML to Another Server

Question: I need to post an XML document from one server to another server. Can I use XMLHTTPRequest for this? Answer: Yes, the XMLHTTP Request object can be used to

DevX

Function to create a folder/subfolder

Question: How can I write a function in C++ that would create a folder/subfolder on the hard-disk? Answer: Standard C or C++ don’t define such a function. However, most platforms

DevX

ASP Integration to Legacy Database Using XML

Question: I am trying to develop an MSSQL ASP application that ties real-time into customer’s existing databases at remote locations. The customers use everything from IBM mainframes to SQL or

DevX

Data Conversion

Question: What is the most efficient method of converting Informix data in a Unix operating system to text or dbf data in an NT operating system (size = 8GB)? Answer:

DevX

Is Informix ANSI ?

Question: I have three quick questions: Is the Informix standard ANSI? Does it accept the function CAST()? What is the largest size char that I can declare? Answer: Informix conforms

DevX

LiteTimer class module

This handy class module by Kieron O’Connor lets you add a control-less timer to your application, without actually using a Timer control. Beside being useful in itself, the CLiteTimer class

DevX

Factorial – The factorial of a number

‘ The factorial of a number” if NUMBER is negative or >170 it raises an’ “subscript out of range” errorFunction Factorial(ByVal number As Long) As Double Static result(170) As Double

DevX

GCD – The Greatest Common Divisor of two integers

‘ the Greatest Common Divisor of two integers’ (it uses the Euclide’s algorithm)’ if either argument is zero you get a “Division by Zero” errorFunction GCD(ByVal n1 As Long, ByVal

DevX

Rnd2 – A random value in a range

‘ A random number in the range (low, high)Function Rnd2(low As Single, high As Single) As Single Rnd2 = Rnd * (high – low) + lowEnd Function

DevX

Fract – The fractional portion of a number

‘ The fractional part of a floating-point number’ note that negative numbers return negative valuesFunction Fract(number As Variant) As Variant Fract = number – Fix(number)End Function

DevX

Log10 – Base-10 logarithm

‘ Base 10 logarithmFunction Log10(number As Double) As Double Log10 = Log(number) / 2.30258509299405End Function

DevX

Randomly Retrieve Records From a Database

Question: I would like to display a “Quote of the Day.” In order to do this, I need to retrieve the numbers of records in a recordset and then randomly

DevX

Obtaining @@Identity with VBScript and ADO

Question: Using VBScript, how can I use the @@Identity SQL Statement to set the keyfield of a record just entered to a variable? Answer: You can issue multiple SQL statements

DevX

Looking for Snip.exe to (Un)register Components

Question: I’m looking for a copy of snip.exe. This program registers/unregisters components/DLLs under a given directory. Answer: I don’t know about SNIP, but how about an even easier method? Copy

DevX

File Security Under NT/2000

Question: I am trying to back up my server, but there are no freeware products that will save the ACLs off the files on the backup. Tape backup is not

DevX

Selecting into a Variable Using Dynamic SQL

Asking how to select into a variable using dynamic SQL is a frequent question on newsgroups because SQL Server will not let you select into a variable using the EXEC()