Tip Bank

DevX

Select Quick Dates (Current Hour/Week/Month)

The following class retrieves the starting and end dates for the Current Hour/Day/Week/Month/Year: Option ExplicitPublic Property Get CurrentHour() As CollectionSet CurrentHour = New CollectionCurrentHour.Add CDate(Date & ” ” & Format(Now,

DevX

Dragging & dropping files on a form

Most document-based applications typically allow to open a document file in two ways: with the Open File menu command / toolbar button, or by dragging and dropping the file from

DevX

Sending Data to a Port in UDP Format

The ByteBuffer Class (from the java.nio package) helps you to write data in UDP by converting them to the respective bytes they generally occupy. This is especially helpful when trying

DevX

Listing Files in a Directory with Perl

The following code: `ls -t ../../html/indexed | awk {‘print $9’}` Will return an array of files, eg: @files=`ls -t ../../html/indexed | awk {‘print $9’}`; @files is now an array containing

DevX

A Container for Pointers to Functions

Many times, you’ll find you need to create a container for pointers to functions. The example below demonstrates the syntax for a vector of pointers to functions. For simplicity’s sake,