Tip Bank

DevX

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

DevX

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

DevX

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

DevX

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

DevX

Checking for NULL Values

Question: When you read a string from a character field in a snapshot/dynaset you can append a pair of double quotes to protect yourself from “Type mismatch” errors, if the

DevX

Finding the End of a Word

Question: I am new to VB and must learn it by yesterday! I am working with text strings and must figure out how to pull words from a line by

DevX

Data Controls and Open Connections

Question: I have five data controls on a form that access five tablesfrom the same database. I want to open the database just once.Does having five data controls mean that

DevX

Installing Database Application

Question: I am having trouble using the setup wizard for a project I have created in Visual Basic. The problem is after I setup the program on another computer, the

DevX

Global Variables Between Applications

Question: The VB4 help files state that Public Declarations in a General module are available to all forms andmodules in all applications. Is this true? I can’taccess such variables across