devxlogo

Tip Bank

Formatting a Disk

Question: How do I issue a disk format command from myVB code? Do I simply shell to DOS? Answer: That’s what I would recommend. Format is a .COM file, so

RecordCount Incorrect

Question: VB reports the wrong number of records from an Access database with the RecordCount property. The same query to dBase files reports the correct number of records. What is

Executing DOS Commands

Question: How can I run the following “SHELL” command in VB? It works fine in PowerBasic, but VB 3.0 doesn’t like it.SHELL “DIR *.BKP > FILES.LST”Any ideas? Answer: Try this:Shell

Detecting Row Selection in TrueGrid

Question: I have a database (Access) with 6 tables. I created a form for each table. I created an Apex True DBGrid for the database using the first table for

Validating Input Data in LostFocus

Question: I have two fields on the screen that I use to enter a date range. I want to check the entry on the lost focus with IsDate, and in

Connecting Network Drives

Question: When I issue the command ‘NET USE’ in msdos, I get a message that a specific drive is disconnected, how can I connect that drive in VB? If I

Providing Multiple Colors

Question: I having trouble using strings and text. I am writing a document creation system and all the text in between the “” char. would be red. All other text

Closing a Data Control

Question: I am using the data control through the Standard Version of Visual Basic 4.0. The data control is linked to a table in our database and when I try

Sharing Data Between Forms

Question: I have a VB app that uses multiple forms. On the first form, I entercustomer information. The other forms calculate the cost of my services tomy customer. I would