| Rapid-Q Documentation Project (RQDP) | Release 01 CHDRIVE |
| Credits & Contributions: | Issues: |
| William Yu | Original Documentation |
| Stanescu Serban | New documents, Project management |
| Others: | Rapid-Q Groups, Yahoo eGroups. |
| Current Document/Author/Revision/Release | chdrive.html/Serban Stanescu/None/01 |
If TestDriveResult("X:")=Failure Then
TreatErrors TestDriveResult("X:")
Else
CHDRIVE "X:"
End If
In this example, we used
"TreatErrors TestDriveResult("X:")" which is a simultaneous call of 2 functions:
TestDriveResult("X":) - where "X:" is any removable type drive as
assigned by the system, and TreatErrors- the error trapping routine. We
use the second to test the drive, and if we succeed, we pass the result to
CHDRIVE, else, we pass the result to the Error trapping function.
(I didn't say we have those functions! It's just an example!)
DIM mypath AS String
'...............................
mypath=GetMyDrivesPath(...)
CHDRIVE mypath
'...............................
| Index | Contents | Up | Next page |