home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic 4 Unleashed
/
Visual_Basic_4_Unleashed_SAMS_Publishing_1995.iso
/
source
/
chap05
/
readme.txt
< prev
Wrap
Text File
|
1995-10-07
|
969b
|
30 lines
Chapter 5:
These are the two modules discussed in Chapter 5. To use them, include
them in a VB project.
The file DEBUG.BAS contains only one function "Assert." Based on C
language ASSERT macros, it tests assumptions and displays messages in
message boxes (in working code) or in log files (in production code).
See the code for syntax. Note that conditional compilation is used in
this module.
FILECLAS.CLS is a new class module that encapsulates error handling for
file I/O. To use it add the file to a vb project. You call it by
instantiating an object of the FileClass type: "Dim myFile as New
FileClass," and then access its properties and use its methods:
Properties Methods
_________ __________
Name FileOpen
Path* FileClose
Mode File Move
Access FileCreate
Length* FileRename
DateTime* FileCopy
MyError* FileDelete
* Read Only
See Chapter 5 for more information.