Skip to content

No_calc Window Format Option

Obsolete

This command is obsolete. It is valid only in character-mode DataFlex. There is no Windows equivalent for this option.

Purpose

To defeat the default action of the Calculate accelerator key.

Syntax

entry_item
file.field [
no_calc
[..., option]]

What It Does

When users press the Calculate accelerator key, the cursor drops to the bottom of the screen, and the expression evaluator is activated. Users may enter expressions including operators (*, +, /, ^) and parentheses. Upon pressing Calculate or Accept again, the result is entered into the window, and the cursor advances from the window.

When an entry_item command includes no_calc, the Calculate accelerator key functions no differently from the Accept accelerator key. No expression evaluation is done for the window.

Example

entry_item unit.serial {no_calc}

In this example, when the cursor is in the item attached to the serial field of the unit file, the Calculate accelerator key is disabled.