devxlogo

Tip Bank

Getting MAPI entryID’s From Outlook Folders

This tip is useful if you do Outlook automation with user created Outlook folders. These folders cannot be accessed by the GetDefaultFolder method usually employed in automation techniques. This snippet

Use Refresh, not DoEvents

The DoEvent statement should be used only to give other portions of your program to be reactive to the end user’s actions. Instead, many VB developers use it to force

Swap strings the fast way

Consider the usual way of swapping two strings: Dim s1 As String, s2 As StringDim tmp As String’ initialize the strings s1 = String$(1000, “-“)s2 = String$(1500, “+”)’ do the

Delete a folder and all its subfolders

The RmDir command can delete a directory only if it doesn’t contain files or sub-directories. If the directory you want to delete does contain other files or, worse, subdirectories it

Serializing and Deserializing Arrays

Suppose you want to store the movements of a chess game in a file so that when the program terminates, the users can resume it later from the same point.

What Is a Thunk?

The term thunk dates back to the days of the antediluvian Algol programming language and has stuck since then. A thunk is an invisible and parameter-less function or procedure that