Copying List Items to the Clipboard

This code is a demonstration of a quick and easy way to copy an entire list (without needing to select them all) or selected list items to the clipboard for pasting into other applications. It simply copies the items to a hidden text box and then uses the clipboard method. Follow the instructions below to see how it… Read More »

4 function Calculator with 8 level memory

This is a 4 function calculator with 8 – level memory, it performs calculations Original Author: James Bergeron Assumptions Nothing, it works nicely Returns Values you calculated Side Effects None, I hope 🙂 API Declarations NONE Code Dim calcarray(0 To 3) As DoubleDim holder As IntegerDim operation As IntegerDim decicount As IntegerDim newnum As IntegerDim clearcount As IntegerDim memstorebut(1… Read More »

Distance Calculation

This code shows how to use Visual Basic to calculate great circle distance (distance between 2 points using decimal latitudes and longitudes). Original Author: Corey Behrends Inputs see code Assumptions 1. This code does not figure in differences in altiude2. In order to use this code you must have the latitude and longitude in decmal form. Returns Returns the… Read More »

Aprostrophe

Have you ever try so send a string variable to MS Access that haveapostrophes using a SQL Statement? If YES you will get a run time ERRORHere is your solution….A function that formats thevariable before sending it to the database. Original Author: Gaetan Savoie Inputs sFieldString Assumptions This code should be used in your Classes.For example :let say myVar=”… Read More »

32-bit Floating Toolbar (NT & 95)

This code gives you the ability to create a ‘floating toolbar’ within your application. The old SetWindowWord function is only good for 16-bit applications, so it won’t run under a 32-bit OS (like NT4). The API call you should use if you are programming a 32-bit application is SetWindowLong. It works the same way as SetWindowWord, only uses… Read More »

Easy routine to check/create directories

This very simple routine avoid checking if a correct path alreadyexist before using it and, if not, create it exactly as you want.Imagine you wont to write a log file in a path defined as:C:MyapplicServiceslogsLOG.TXTyou must check before if the directory Myapplic exist andthen check all other subdirectory (Service,logs) before opening thefile For Output. Probably you will use… Read More »

Command1_click

Allows you to backup a source file and have the destination file name be the current date. Great for database backups! Original Author: Daniel Bennington Assumptions Create a new form, create a field called text1 and a field called text2. Also create a command button called command1.Change Source directory to your database directory name, change source file name to… Read More »

Form Resizer Deluxe

Class module for resizing/repositioning controls on a form. See source code for details. Original Author: John Buzzurro Inputs see source code Assumptions see source code Returns see source code Code ”””””””””””””””””””””””””””””””””””””””” MODULE DESCRIPTION:’  Class for scaling/repositioning controls on a form” DATE CREATED:’  10-22-1998” AUTHOR:’  John Buzzurro” COPYRIGHT NOTICE:’  Copyright (c) 1998 by John Buzzurro” NOTES:’ A) To give your form resizing ability:”  1) Create… Read More »

Get IE4 History URLs history folder

This code will open a DAT file in the c:windowshistory folder and pull out all sites visited Original Author: Chris Wells Assumptions For the Index.dat file the displacement is set to 119 for other files I haveset the displacement to 15.For the Index.dat file the delimiter, or search string, is “URL “For other files I have used “Visited: “This… Read More »

A Way to take a screenshot

This code simply takes a picture of your desktop or a screenshot. I guess if you wanted to you could use this to view the desktop of a computer over a network, although that would be a bit slow. I hope this code is of some interest to some people Hope this helps. Original Author: Steve Assumptions ‘Check out… Read More »