The Latest

DevX - Software Development Resource

Setting Up Indivdidual Addresses

Question: I am running an ISP. Many of our clients want Web hosting along with their own email addresses. When setting up Exchange on one server that is hosting multiple

DevX - Software Development Resource

Limit Access to Free/Busy

Question: Our CEO has three Personal Assistants who access his Mail and Calendar Items. He does not anyone else to be able to book a meeting directly. How can he

DevX - Software Development Resource

Email Notification

Question: Do you know of any app or configuration within Outlook 2000 that can check a user`s Exchange mailbox without having Outlook itself open? Answer: Sorry, no. There are at

DevX - Software Development Resource

Delete vs. Move to Deleted Folder

Question: How do I have deleted messages go into the bit bucket instead of the Deleted folder? Answer: You didn’t indicate what version of Outlook you’re running, but the Outlook

DevX - Software Development Resource

Call VB Program from 4GL

Question: How do I call an application made in VB from 4GL? Answer: I’m not a 4GL user, but I believe there is a “system” command that will allow you

DevX - Software Development Resource

Leftover Messages

Question: Is it normal for items to remain in my mailbox resource even after I retrieve all my messages from the server on Exchange 5.5? Answer: Your mailbox “items” include

DevX - Software Development Resource

Import/Export Contacts

Question: Once end users have created contacts, how do they export them to their home computers or laptops? Answer: I assume you’re looking for a simple—if inelegant—way to just “floppy

DevX - Software Development Resource

Self-aware Data Wrapper Objects with VB

f you’re one of the thousands of programmers out there writing server-side business components, then youve probably used data wrappers: light-weight objects designed to access streamed data. The following article

DevX - Software Development Resource

IsValidPhoneField – Check whether a phone number is valid

‘ Validate attributes of Phone data’ Returns True if valid, False if invalid” Also returns the phone in formatted fashion (USA format).’ Will convert alphabetics to numeric”Example:’ If IsValidPhoneField(Value:=”3034414444″, ReformattedPhone:=strNewPhone,’

DevX - Software Development Resource

IsValidCreditCardNumber – Check whether a credit card number is valid

‘ Validate a credit card numbers’ Returns True if valid, False if invalid” Example:’ If IsValidCreditCardNumber(Value:=”1234-123456-12345″, IsRequired:=True)Function IsValidCreditCardNumber(Value As Variant, Optional ByVal IsRequired As _ Boolean = True) As Boolean

DevX - Software Development Resource

MSExcel – A class for writing Excel spreadsheets

‘***********************************************************’* Module Name: MSExcel’* Author: Steve Miller’* Date: 11/22/98’* Description: Encapsulates and eases the chore of writing to an Excel ‘ spreadsheet.’*’* IMPORTANT: requires that you have a reference to

DevX - Software Development Resource

The beginning or end of previous week

For reporting, many times you need to figure out what date last week began and ended. Use the code below to figure that out: Dim vntBegin As variantDim vntEnd As

DevX - Software Development Resource

Send HTML Email via CDO

Ever wonder how to send email that looks like a web page? Here is how you do it. Note: You must have CDO for NT referenced for this to work.

DevX - Software Development Resource

Sending Email Using CDO and MAPI

Sending emails via code used to be cool, but now it is a necessity. Below is code to send email via CDO. If the CDO call fails, it will send

DevX - Software Development Resource

IsValidDateField – Check whether a date is valid

Enum psDateTypes AnyValidDate ‘Allows any valid date to be entered PastDate ‘Only allows past dates (before today) to be entered FutureDate ‘Only allows future dates (after today) to be entered

DevX - Software Development Resource

IsValidSSN – Check a Social Security Number value

‘ Validates attributes of the SSN’ Returns True if valid, False if invalid”Example:’ If IsValidSSN(Value:=”333-44-3333″, IsRequired:=True) then …Function IsValidSSN(ByRef Value As String, Optional ByVal IsRequired As Boolean _ = True)

DevX - Software Development Resource

Create Database Primary Keys on the Fly

Since Guids are unique anywhere you find them, they make a good primary key.The trick is to create them where and when you need them using the CoCreateGuidAPI. You can

DevX - Software Development Resource

Precedence of the * and []Operators

The array subscript operator, [], has a higher precedence than the pointer dereference operator, *. Therefore, the following snippet declares an array of 10 pointers to char, not a pointer

DevX - Software Development Resource

Creating and Executing a Variable as a Query

Question: How do I create a stored procedure that will construct and execute a query from its parameters? At the heart I’d imagine something like this, for simplicity’s sake: declare

DevX - Software Development Resource

Date Time Fields

Question: I have a database with a DateTime field of the following structure 1974-01-18T00:00:00′. How do I query it so that I can extract the dates with a particular day

DevX - Software Development Resource

Large Text Fields

Question: How do I create a text field of greater than 8,000 characters (in v7.0)? I attempted to use the “text” data type, but my code returned an error saying

DevX - Software Development Resource

Storing RTF Text

Question: I’m trying to store text that’s in an RTF format using the TextRTF property of VB’s RichTextBox control. What type of field do I have to use in my

DevX - Software Development Resource

Rolling 12-Month Totals

Question: I have two similar tables with monthly data: one holds current year data and the other holds prior year data. How do I combine them to create a rolling

DevX - Software Development Resource

Converting Number to Date

Question: How do I convert a number that represents a date into a date field? The number’s format is CCYYMMDD. Answer: Fortunately, the format of your numeric value doesn’t need

DevX - Software Development Resource

CopyURLToFile – Download a file from the Internet via FTP or HTTP

Const INTERNET_OPEN_TYPE_PRECONFIG = 0Const INTERNET_FLAG_EXISTING_CONNECT = &H20000000Private Declare Function InternetOpen Lib “wininet.dll” Alias “InternetOpenA” _ (ByVal lpszAgent As String, ByVal dwAccessType As Long, _ ByVal lpszProxyName As String, ByVal lpszProxyBypass

DevX - Software Development Resource

Auto Start Full Text Index

Question: Can I auto start full text index? Answer: Although Enterprise Manager doesn’t provide the option, you can set this service to start automatically by using the services icon in

DevX - Software Development Resource

Determining Field Data Type

Question: Is there a non-platform-specific SQL way of determining what data type a given field is? Answer: That information is specific to each database. Every product stores its meta data

DevX - Software Development Resource

User-Defined Data Type in a Temporary Table

Question: Can I use a user-defined data type when defining a temporary table in a stored procedure? Answer: You can use user-defined data types in temporary tables, but remember one