FileOpen Function (1 Viewer)

Kn1ght_M4r3

Member
Joined
Mar 3, 2003
Messages
332
Location
D o w n l o a d C o m p l e t e .....
Hey can anyone help me out. i need to understand how the FileOpen function works. I tried it out but for meeh it doesn't work.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/vastmopen.asp

i just want to know how this works but for some reason i just keep on getting errors.

Am i supposed to put this into a sub program?

Public Sub FileOpen( _
ByVal FileNumber As Integer, _
ByVal FileName As String, _
ByVal Mode As OpenMode, _
Optional ByVal Access As OpenAccess = OpenAccess.Default, _
Optional ByVal Share As OpenShare = OpenShare.Default, _
Optional ByVal RecordLength As Integer = -1 _
)

Thanx f0r the help
 

Fosweb

I could be your Doctor...
Joined
Jun 20, 2003
Messages
594
Location
UNSW. Still.
Gender
Male
HSC
2003
this is .NET? (i dont do dotNet...)

But i would say that what this is saying is:

To open a file:
Do this: FileOpen(fileNumber, fileName, OpenMode)
Where: fileNumber is a number that you have made up, like, say, 1 or 2, or a number generated from an internal FreeFile function (i'm sure .Net has one too)
Where: fileName is the path of the file.
Where: openmode is Append, Binary, Input, Output, or Random.

The other things are optional. Add the things from that address above if you want the file to have these properties when opened.

Clear?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top