devxlogo

December 8, 1999

ADO Provider Problem

Question: I created a program to help our sales department to keep track of their sale quotes. It uses a MDB database and I used the ADO components to gather

Cube Root Function

Question: Would you please tell me the code in Visual Basic for a cube root function on a basic calculator. Answer: It’s very simple, you just have to raise a

App Not Running on Other Machines

Question: After compiling my VB app, and installing it on my machine, it will run. But, when I install it on my professor’s machine at school, it doesn’t work at

Access 97 vs. 2000 Databases

Question: I have a program in VB6 using an Access 97 database. The code I use for all my procedures is as follows: Dim db as DatabaseSet db = DBEngine.Workspaces(0).OpenDatabase(“biblio.mdb”,

Finding the Calling Procedure

Question: Often I place a Break Point in a Function or Procedure for Debugging purposes.How I can find the immediate calling procedure?Or, better how I can find all the previous

Differences Between C++ and Java

Question: In C++, when a programmer intends to write: if (value == 1) { But, they often make the following mistake: if (value = 1) {…… Why doesn’t this problem

VB Class Module

Question: I have noticed that a termination event won’t be fired unless the class variable is out of scope, or I specifically set the class variable to Nothing (in earlier

Replace Function

Question: I just started with VB6 programming and I need to write a short program doing the following: 1. Enter a sentence.2. From this sentence which was entered, pick any

Changing Label Caption of a Textbox

Question: I am an extreme newbie with VB. How do I change the caption of a label to the value of a textbox? Answer: Substitute the name of the Label