Reset Procedure


Reset Procedure

Class

Microsoft.VisualBasic.FileSystem

Syntax

     Reset(  ) 

Description

The Reset procedure closes all files that have been opened using the FileOpen procedure.

Usage at a Glance

  • The contents of any current file buffers are written to disk by the Reset procedure immediately prior to Reset closing the respective files.

  • The Reset procedure is functionally equivalent to the FileClose procedure used with no arguments.

  • The Reset procedure is generally used as a last resort, closing all files if your program is terminating abnormally. Normally, you should write code to close each open file using the FileClose procedure.

Version Differences

In Visual Basic 2005, the My.Computer.FileSystem object provides more robust access to file management features.

See Also

FileClose Procedure, FileOpen Procedure




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net