devxlogo

Tip Bank

Make More Versatile Trim Functions

One of the nice things about VB is the ability to redefine most of the built-in commands. For example, you can extend the functionality of the Trim family of commands.

Determine Time on Client Machine

Question: How can I get the system time using HTML and JavaScript? Answer: I’m assuming that by “system time,” you mean the time on the client machine. You can access

Load Images off JAR Files

Packing resources (classes, sound files, images) in a JAR file is good way of reducing download time and decreasing distribution size. This tip shows you how to load images off

Swap Strings Faster

Here’s a cool way to swap strings: Declare Sub CopyMemory Lib “kernel32” Alias _ “RtlMoveMemory” (Destination As Any, _ Source As Any, ByVal Length As Long)Sub SwapString(String1 As String, String2

ANSI Join vs. WHERE Clause Join

Question: Is there a technical or logical difference between using an ANSI style join and specifying the join using the WHERE clause? Is there a general preference to either method,

Changing Outlook’s Default E-mail Message

Question: I want to change the format of the default e-mail message (IPM.Note). I have created a new form, but want it used whenever the user selects “New Message.” (I