GetOpenMode (get the file's open mode)

Top  Previous  Next

 

GetOpenMode( )

GetOpenMode

Retrieves the open mode of the current filename.

The GetOpenMode method is used to retrieve the current file’s access mode.

Implementation:

GetOpenMode retrieves the value of the PROTECTED OpenMode property. It can be useful for detecting a file’s default open mode set by the templates, and resetting it at runtime via the SetOpenMode method.

Return Value:     BYTE

Example:

IF Access:Customer.GetOpenMode() <> 42H

Access:Customer.SetOpenMode(42H)

END

Access:Customer.Open()

 

See Also:     SetOpenMode