The FileSystem and File Controls

Team-Fly    

 
eMbedded Visual Basic: Windows CE and Pocket PC Mobile Applications
By Chris Tacke, Timothy Bassett
Table of Contents
Chapter 3.  Manipulating Files


The Microsoft FileSystem and File controls are distributed with the platform SDK for each CE platform. They are both included in the MSCEFile.dll library. Controls are added to projects in eVB in the same manner as in other versions of Visual Basic (by choosing Components from the Tools menu). You can add the File and FileSystem controls specifically to your project via the Microsoft CE FileSystem Control 3.0 component library (see Figure 3.1).

Figure 3.1. Adding the FileSystem control library to your project.

graphics/03fig01.gif

Adding the reference places both controls into the eVB toolbox. The File control's button shows a small file icon, whereas the FileSystem control shows a small two- drawer filing cabinet (see Figure 3.2).

Figure 3.2. The eVB toolbox with the standard controls, the File control and the FileSystem control.

graphics/03fig02.gif

The Controls' Object Models

This chapter will cover a large amount of the File and FileSystem controls' object models. Covering the entire object model for any library in a single project is difficult and often impractical . Many methods are used in just about every project, whereas others are used only for specific, narrowly focused uses.

The following is a list of the methods and properties used in this chapter:

File Control FileSystem Control
Close Dir
Input FileDateTime
LinePrint FileLen
Open GetAttr
EOF Kill

As a reference guide, Appendix A includes all the object models for the File and FileSystem controls.


Team-Fly    
Top
 


eMbedded Visual BasicR. WindowsR CE and Pocket PC Mobile Applications
eMbedded Visual BasicR. WindowsR CE and Pocket PC Mobile Applications
ISBN: N/A
EAN: N/A
Year: 2001
Pages: 108

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