GetReadOnly()

Summary

Gets the value of the Read Only checkbox in the most recent call to ChooseFile().

Syntax

read_only = GetReadOnly()

Returns

A string "True" if the Read Only box was checked the last time ChooseFile() was called; "False" if the box was not checked.

Notes

  • If ChooseFile() has not yet been called in this session, GetReadOnly() returns "True".

Example

fnm = ChooseFile({{"DBASE Files", "*.dbf"}}, "Choose a File")
ro = GetReadOnly()
if Upper(ro) = "TRUE" then ShowMessage("You cannot edit " + fnm)

See Also

Function Summary
ChooseFile() Gets the name of an existing file using the Windows File dialog box