Tip Bank

DevX - Software Development Resource

Type Mismatch Error

Question: I have an SQL statement in my program that looks like this:data3.recordsource = “SELECT id, date from reservations where (date = ‘” & maskededit1.text & “‘) and (id =

DevX - Software Development Resource

Detecting the Cancel Button

Question: In my “Save As” dialog box (from CMDIALOG.VBX), my OK button and Cancel button both save work. How do I recognize when the userpresses the Cancel button? Answer: One

DevX - Software Development Resource

Calling a Form’s Subroutines

Question: How can I call another Form’s subroutine? Answer: Under VB3 you can’t call another form’s subroutine. If you need to do this, put the sub into a .BAS module.

DevX - Software Development Resource

Command Line Switches

Question: I have a formless VB exe program that creates VB modules(.bas) and saves them to disk.Is there a way of having my program start VB passing my module name

DevX - Software Development Resource

Equivalent to fork()?

Question: Is there any command in visual basic which is similar to fork command in c? Answer: It’s not exactly the same, but the Shell statement will allow you to

DevX - Software Development Resource

Memory Limitations in List Box

Question: I want to add a large amount of items to a list box ,3700 to be exact, and in the future the number of items could grow even more.

DevX - Software Development Resource

Installing all Files Required

Question: I’ve created a small utility. The exe is only 27k, but vb40032.dll, mfc40.dll (for a custom control) and others make the setup zip over 1 meg. Can I leave

DevX - Software Development Resource

Running Strictly from CD-ROM

Question: My question was in regards to installation. I would like to know if it is possible to run a VB program right from a floppy or CDROM without installing