Indicates whether an AAF (Automatic Application Feature) can be run on a specific control.
// Gray "BTN_Cancel" out if no action can be undone
IF AAFPossible(PSHEET_MySpreadsheet, aafUndo) THEN
BTN_Cancel.Grayed = False
ELSE
BTN_Cancel.Grayed = True
END
Syntax
<Result> = AAFPossible(<Control> , <Feature to use>)
<Result>: Boolean
- True if the specified AAF (Automatic Application Feature) can be used,
- False otherwise.
<Control>: Control name
Name of control to use, for which an available AAF (Automatic Application Feature) is requested. This parameter can correspond to: - a Spreadsheet control.
- an internal window running in Edit mode.
<Feature to use>: Integer constant
Automatic Application Feature to use: | |
aafPaste | Used to find out whether "Paste" is available for the control. Control used: Spreadsheet control. |
aafCopy | Used to find out whether "Copy" is available for the control. Control used: Spreadsheet control. |
aafCut | Used to find out whether "Cut" is available for the control. Control used: Spreadsheet control. |
aafSaveAs | Used to find out whether the content of the control can be saved under another name. |
aafRedo | Used to find out whether "Redo" (redo the last action) is available for the control. |
aafUndo | Used to find out whether "Undo" (undo the last action) is available for the control. |
If another another aafxxx constant is used, <Result> is set to False.