Home > Language Reference > Classes > StreamFile

Attributes Property

File attributes.

Syntax

Public Property Get Attributes() As HbFileAttribute
Public Property Let Attributes(ByVal
eAttributes As HbFileAttribute)

ParameterDescription
eAttributesNew file attributes.

Remarks

The Attributes property returns or sets file attributes. Like most of this object's functionality, calling this property causes a runtime error if the file has not previously been opened using the Open method.

The value returned or acepted by this property can be any combination of the following values:

ConstantValueDescription
hbFileAttrArchive&H0020Archived file or directory.
hbFileAttrDirectory&H0010Directory.
hbFileAttrHidden&H0002Hidden file or directory.
hbFileAttrLink&H0040Symbolic link
hbFileAttrReadOnly&H0001Read only file or directory.
hbFileAttrSystem&H0004System file or directory.
hbFileAttrVolumeLabel&H0008System file containing the volume name.

Although it does not cause an error, it is strongly recommended that you do not use this property to modify the hbFileAttrDirectory, hbFileAttrLink and hbFileAttrVolumeLabel attributes of a file. These attributes are used by the file management system and modifying them may make the card unreadable.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0Requires an expansion slot.