VBCE.com - The Premier Website For Visual Basic/CE Developers

 

*Dev Corner

Sample Code
Controls
Workarounds
Tips & Tricks
Q & A
Forums

*Goodies
Downloads
Software
Bookstore


*General
Home
What's New
General Info
Misc. Info


*News Worthy
News
Articles
Editorials
KB Articles
Reviews
Awards

*Miscellaneous
Web Links
Partners
Search
Feedback
Advertising

<% On Error Resume Next SiteStats() %>

Sponsors


More...


File Control Constants

These are the constants for the CE File Control. Place them in the declarations section of a form or use the public version below and place it in the Declarations section of a *.BAS module.

'Place in Form Declarations Section:
'======================
'File Control Constants
'======================
'MODES

Const CEFILE_INPUT = 1
Const CEFILE_OUTPUT = 2
Const CEFILE_RANDOM = 4
Const CEFILE_APPEND = 8
Const CEFILE_BINARY = 32
'ACCESS
Const CEFILE_READ = 1
Const CEFILE_WRITE = 2
Const CEFILE_READWRITE = 3 'Default
'LOCK
Const CEFILE_SHARED = 1
Const CEFILE_LOCKREAD = 2
Const CEFILE_LOCKWRITE = 3 'Default
Const CEFILE_LOCKREADWRITE = 5

OR Use this one:

'Place in Module Declarations Section:
'======================
'File Control Constants
'======================
'MODES

Public Const CEFILE_INPUT = 1
Public Const CEFILE_OUTPUT = 2
Public Const CEFILE_RANDOM = 4
Public Const CEFILE_APPEND = 8
Public Const CEFILE_BINARY = 32
'ACCESS
Public Const CEFILE_READ = 1
Public Const CEFILE_WRITE = 2
Public Const CEFILE_READWRITE = 3 'Default
'LOCK
Public Const CEFILE_SHARED = 1
Public Const CEFILE_LOCKREAD = 2
Public Const CEFILE_LOCKWRITE = 3 'Default
Public Const CEFILE_LOCKREADWRITE = 5



VBCE.com is DevX Winner!

Unless otherwise noted, all information on VBCE.com is Copyright 1998 - 2002
Windows, Windows CE, and Visual Basic are trademarks of the Microsoft Corporation.
VBCE.com is not responsible for content on external sites.
Send all feedback to webmaster@vbce.com
Webmasters - feel free to link to
VBCE.com - Premier Website for Visual Basic/CE Development

Buy Books!