The Latest

DevX

Error in Timed Job

Question: I am getting an error (“Could not do a physical-order read to fetch next row” #244) while executing a job that runs a set of SQL statements every 30

DevX

Win 95/NT Login To Informix

Question: I cannot get 6 of 60 units to log in to an Informix application server. The units are all identical and they can ping the server. I get the

DevX

.PAB’s in Outlook

Question: Can I enable an Outlook profile to access two .PAB’s (the same way it can access two PST’s)? Answer: No, I’m afraid not. However, you could import one of

DevX

Select Statement to Combine Two Tables

Question: How do I use a SQL select statement to combine two tables that are identical in structure but contain different data? Answer: The union statement allows you to combine

DevX

Shared Memory Error

Question: My Informix usually server starts fine, but when I try to add a database chunk with the onspaces command I get an error (“shared memory not initialized”). Any ideas?

DevX

Oninit Dying Unexplainably

Question: My Informix 7.30 dies occasionally and returns the following message: 16:01:06 Checkpoint Completed: duration was 0 seconds.16:06:06 Checkpoint Completed: duration was 0 seconds.16:11:06 Checkpoint Completed: duration was 0 seconds.16:16:06

DevX

Transaction State

Question: How do I know if I am already in a transaction when I call a procedure from another one? Answer: I’m not aware of an easy way to do

DevX

Building a Text Editor, Part IV

n this final installment of the text editor project, we’re going to be adding these commonly used features: Find, Find Again Cut, Copy, Paste As usual, the final code is

DevX

Excellent Charts with Microsoft Excel and ASP

e’ve all seen Web sites that display great-looking, informative graphs generated from dynamic data. Stock market reports are one common example of these; sales and marketing information also frequently get

DevX

MTS Programming

Question: Should I make a call to GetObjectContext() in every function in my DLL? Obviously, you are going to do that in your “main” methods, but does calling GetObjectContext() in

DevX

Reference to Pointers

Question: When should you use reference to pointers like those found in function arguments (class_name * & )? Answer: When you want the callee to change the pointer itself, not

DevX

Quick comparison among UDTs

When you need to compare two User Defined Type (UDT) variables to check whether they are equal, the only approach that you can follow in plain VB is to compare

DevX

Do Templates Increase Executable Size ?

Question: Since template code is generated at compile time, it implies that there should be a separate set of code for each template objects created. Does that mean templates increase

DevX

Reserved Words

Question: Where can I find a list of reserved words in C++? Answer: Most C++ books include a list of reserved keywords. Here’s the list: asm do if return typedefauto

DevX

Changing the Value of Global Parameters

Question: With XSL, can I change the value of global parameters inside the templates named temp? Answer: No. Parameters and variables in XSLT, once defined, essentially are fixed for a

DevX

VB Constant Declaration

Question: What does the ‘* 1’ mean in this constant declaration? Public Const gcsDelimiter As String * 1 = “|” Answer: The * in your example defines the size of

DevX

Our Top 10 Tips for Classic ASP

ur focus has always been on assisting the new ASP programmer in mastering the techniques that the pros use all the time. Thus, to help you wade through the list

DevX

Dynamic SQL in Oracle 8i

Oracle 8I gives developers a new feature to allow execution of native dynamic SQL. This is an alternative to the DBMS_SQL package previously required. Now developers can use dynamic SQL

DevX

Computed Values in Select Query

Question: Can I use computed values from a select list in a WHERE clause? For example: select age + 10 as AGE_10 from employee where AGE_10 > 50 Answer: This

DevX

Converting Text to Date for Aging Amounts

Question: The table I am using stores date values as strings due to conversion data. The format is 2000-07-01 for July 1, 2000. I need to be able to age

DevX

Union Query

Question: I am writing a SQL statement in Access that is a union query. I am getting an error saying “The number of columns in the two selected tables or

DevX

Deleting a Column

Question: How do I delete a column, and all the values in it? Truncating will delete only the values, not the column itself. And I don’t want to drop the

DevX

SQL Command to Retrieve Date

Question: What is the SQL command for retrieving the current date? Answer: The GETDATE() function returns the current date and time. Write it like this: SELECT GETDATE() AS CurrentDateCurrentDate —————————

DevX

Creating help string for Enum constants

I’ve been trying to find a way to assign helpstrings for Enums in Visual Basic. The Class builder utility does that only for methods, events, and properties, but not for

DevX

Simplify your code with Inc and Dec functions

Unlike other languages – such as C and Delphi – VB lacks of the capability to increment and decrement a variable. Adding this feature, in the form of reusable Function

DevX

CombSort – A very efficient algorithm

‘ Comb Sort an array of any type” CombSort is faster than all but QuickSort and close to it.’ On the other hand, the code is much simpler than QuickSort’