Question about Random Access files.....

I am trying to create an application that will write some records to Random Access file that will allow a field (a name) to be entered only once in the file.

Do I need to open the file twice: once to read and check the names; and once to write the name to the file if the name is not already there? (FileGet.)
FileGet(1, udtName, intRecordNumber)

Or will using the OpenAccess.ReadWrite argument do both:
FileOpen(1,, OpenMode.Random, OpenAccess.ReadWrite, _
OpenShare, Len(udtName))

So far not having much luck with either option.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!