DetailPage-MSS-KB

Microsoft small business knowledge base

Article ID: 172267 - Last Review: February 28, 2014 - Revision: 3.2

This article was previously published under Q172267
This article has been archived. It is offered "as is" and will no longer be updated.

On This Page

SUMMARY

This sample demonstrates how to do file input and output using Visual Basic. The sample creates a new database file and allows you to view, add, or delete records in this database.

The following files are available for download from the Microsoft Download Center:
Recedit.exe (http://download.microsoft.com/download/vb60pro/samp4/1/win98/en-us/recedit.exe)
For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591  (http://support.microsoft.com/kb/119591/EN-US/ ) How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.

MORE INFORMATION

The techniques in this sample file can be used to view, access, and write to sequential, random, and binary files. After you download and run the self-extracting file, the following files are created:
  • Fileproc.bas(4.30Kb)--The module containing Public Sub and Function procedures for opening files.
  • Readme.txt--The readme file that contains the text of this article.
  • Recedit.bas(309 bytes)--The module containing Public type definitions.
  • Recedit.frm(13.4Kb)--The main form for the sample.
  • Recedit.vbp(516 bytes)--The project file for the sample.

To Run This Project

  1. Start Visual Basic. The New Project dialog box appears.
  2. In the New Project dialog box, click the existing tab and go to the directory with the extracted files. Choose recedit.vbp.
  3. Press the F5 key to run the project.
For more information about file input/output, please see "Processing Files" in the Programmer's Guide.

APPLIES TO
  • Microsoft Visual Basic 5.0 Learning Edition
  • Microsoft Visual Basic 6.0 Learning Edition
  • Microsoft Visual Basic 5.0 Professional Edition
  • Microsoft Visual Basic 6.0 Professional Edition
  • Microsoft Visual Basic 5.0 Enterprise Edition
  • Microsoft Visual Basic 6.0 Enterprise Edition
Keywords: 
kbnosurvey kbarchive kbhowto kbdownload kbtophit kbfile kbsample KB172267
Share
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support