Xbasic

ALLOW_EDITING Function

Syntax

Result_Flag as L = ALLOW_EDITING([N session_handle])

Arguments

session_handle

Optional. Default = Session for the current form or browse window. Numeric

Description

Reports if editing is allowed for a particular session (the current session if ommited).

ALLOW_EDITING() returns the current setting of the Form > Allow Edits, or Browse > Allow Edits menu command. If this menu choice is checked (edits allowed), the Result_Flag is .T. . If it is cleared, Result_Flag is .F.

Example 

To get the status of the Allow Edits command for the current form:

flag = allow_editing()

To get the status of the Allow Edits command for the Invoice form:

sh = :invoice.sessionhandle()
flag = allow_editing(sh)

Limitations

Desktop applications only.

See Also