Tip Bank

DevX - Software Development Resource

Type Declarations

Question: I define a user-defined type as follow..Type Complex Re As Double Im As DoubleEnd TypeI created a function like this…Function CompAdd( a As Complex, b As Complex ) As

DevX - Software Development Resource

Documentation

Question: How do I write a help file in Word 6, and then, how do I compile it? I can’t find any documentation on it. Answer: This is unfortunately not

DevX - Software Development Resource

Application Finding VBXs and DLLs

Question: I have created a VB executable file and now want to distribute it to users. I want this executable to reside on our network drive. The problem that I

DevX - Software Development Resource

Using SaveSetting in 16 Bit Environment

Question: I have problem with the statement “SaveSetting” in VB 4.0 16 bit. Answer: SaveSetting writes entries to the Registry, which is a Win95 32-bit feature. Under 16-bit VB and

DevX - Software Development Resource

Using Generic Objects

Question: I am using a subroutine which involves 2 list boxes in a pick box configuration. I take the literal boxname [Form.Control] and load it to a variable- BoxName. I

DevX - Software Development Resource

Getting Windows Directory

Question: How do I determine the Windows directory? Answer: The API call to use is “GetWindowsDirectory”. The Declare statement is listed in the the Windows 3.1 API help and the

DevX - Software Development Resource

Copying a File

Question: How do I write VB code to copy one file to another? Answer: You can either use the FileCopy Visual Basic command, or use the method outlined elsewhere in

DevX - Software Development Resource

Detecting Microsoft Video for Windows

Question: I need to inquire if Video for Windows has been installed beforeattempting to play an AVI file. How can I do this? Answer: All versions of Windows keep track

DevX - Software Development Resource

Using Seek Method

Question: I am currently migrating my VB/Access application to Microsoft SQL Server. However, the “SEEK” function in my old program does not work any more and I can not find