9.0

174
GetAttr Function
Syntax
GetAttr(Name$)
Group
File
Description
Return the attributes for file Name$. If the file does not exist then a run-time error occurs.
Parameter Description
Name$ This string value is the path and name of the file. A path relative to the current
directory can be used.
Example
Sub Main
F$ = Dir
$("*.*")
While
F$ <> ""
Debug
.Print F$;" ";GetAttr(F$)
F$ = Dir
$()
Wend
End Sub
GetFilePath$ Function
Syntax
GetFilePath[$]([DefName$], [DefExt$], [DefDir$], _
[Title$
], [Option])
Group
User Input
Description
Put up a dialog box and get a file path from the user. The returned string is a complete path and file name. If the
cancel button is pressed then a null string is returned.
Parameter Description
DefName$ Set the initial File Name in the to this string value. If this is omitted then *.DefExt$ is
used.
DefExt$ Initially show files whose extension matches this string value. (Multiple extensions
can be specified by using ";" as the separator.) If this is omitted then * is used.
DefDir$ This strin
g
value is the initial director
y
. If this is omitted then the current director
y
is
used.
Title$ This string value is the title of the dialog. If this is omitted then ''Open" is used.
Option This numeric value determines the file selection options. If this is omitted then zero
is used. See table below.
Option Effect