October 14, 1999

Loading Dynamic Forms

Question: I have a menu system that loads the name of a form into the appropriate menu item. How would you load the form from that item, considering that when I click the the menu item I don’t know what the form is. Answer: If you know the name of

Arctan Function Problems

Question: I have to use the arctan function but there are onlyarcsin and arccos in VB. And arctan is not equal toarcsin/arccos. I have lost almost all of my trigonometry background, can you help me? Answer: This answer is very simple, you just have the wrong name for the function.

Adding a New Label at Run Time

Question: I have been unable to add a new label onto my form at run time because the ‘new’ command doesn’t seem to work for a label. What’s the best way to do this? Answer: If you are using VB 6.0, the easiest way to add controls would be to

Difference Between Subs and Functions

Question: As new to Visual Basic, I am having trouble understanding the difference between Sub a Procedure and a Function Procedure. And I would also like to know where and how to use each. An example would be much appreciated. Answer: The difference between Subs and Functions is that a

ADO Data Control

Question: I hope that you might be able to help me with the problem I am experiencing. I am developing an application in VB6 using ADO Data Control. I need to set the EditMode Recordset property, which is read only, to EditInProgress. This is normally done by .Edit method, but

Dynamically Change the Title of an HTML Page

Here is a simple way by which you can dynamically change the title of the browser window (or an HTML page). There are certain scenarios where you can use this feature to provide useful information to the user. For example, if the user is entering a series of data entry

Check if Provider Supports Transactions

A transaction can be defined as a related set of operations that read and modify data in a single batch. Every transaction should follow the ACID rule, where ACID stands for atomic, consistent, isolated, and durable. A transaction provides atomicity to a series of data modifications to one or more