devxlogo

Tip Bank

Calculating Elapsed Time

Question: Do you know an algorithm that will give me the elapsed time froma beginning and end date/times (day:hh:mm:ss)? Answer: The DateDiff function, included with VB 3 and 4, will

Creating a Sorted List

Question: I am creating a touch screen directory for a hospital. All of departments are listed in alphabetic order as a button which, when pressed displays a map of the

Filling DBGrid Manually

Question: Id like to no how you address text to the DbGrid1 custom control. For example the Grid control addressesby How would I do this with the DbGrid1 custom control

Checking for Existence of a File

Question: How do you check to see if the name of a file you want to RENAME a file to already exists? Answer: Here is a great example of how

Selecting Visual Basic vs. Visual C++

Question: Where would you use Visual Basic over Visual C++? Answer: Well, personally, I’d almost always use VB over VC++ for a few reasons: Ease of use – it’s much

Running 32 Bit Applications

Question: I tried running a “hello world” VB4 32bit program from Win32 in Windows 3.1 (on a machine that has VB3 Pro and not VB4), which caused the following errors:VBRUN40032.DLL

Using Large Dynasets

Question: I have a VB app that I use to correct records on an Rdb database on a VAX. I am using Microsoft’s TCP/IP and DEC’sODBC drivers. Our databases can

Using Function Pointers/Dynamic Functions

Question: In Access 2.0 there is an Eval() function which will automatically evaluate numeric expressions. This functionality does not appear to exist in VB 4. I found an article in

Action was Cancelled Error

Question: I am developing a small database using the engine supplied with VB 4.0 Pro. When I try to update an entry, I get the following run-time error: “Run-Time Error