DOCMODE Function
The DOCMODE function returns an integer that corresponds to the current mode of CaseView.
DOCMODE()
The function returns an integer with the following values:
0 = Form
1 = Form Mode with Editing enabled
2 = Design
Using this function triggers an auto recalculation upon switching modes.