devxlogo

Tip Bank

Opening a Word Document

Question: How can I open a Word document from my Visual Basic application? Answer: Use the following code sample to do it:Set wordbasic = CreateObject(“word.basic”)wordbasic.fileopen pathname$, 0, 1where:pathname$ is the

Accessing Financial Function Library

Question: I’m looking for help on using the VB 3.0 functions IRR, MIRR and NPV. When I try to use any of them I get Reference to undefined function or

Storing Pictures in a DLL

Question: I found a vbx which allows me to place icons or bitmapson a command button. How can I store these images in onefile and read them in like an

Adding Leading Zeroes

Question: A control record value for next_order_num will contain the value “00009998” when you first get the control record file. Each time you write the next_order_num field back into the

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

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

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

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

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