LOTUSSCRIPT LANGUAGE


FileAttr function
Example

Returns the access type, or the operating system file handle, for an open file.

Syntax

FileAttr ( fileNumber, attribute )

Elements

fileNumber


attribute
Return value

If attribute is ATTR_HANDLE, then FileAttr returns the operating system file handle for the file.

If attribute is ATTR_MODE, then FileAttr returns an integer representing the access for the file, as shown in the following table.

Return valueAccessConstant
1InputATTR_INPUT
2 OutputATTR_OUTPUT
4 RandomATTR_RANDOM
8 AppendATTR_APPEND
32 BinaryATTR_BINARY

Example
See Also