613-518-1166 info@zimdatabases.com

ZIM Language Reference

FORM CLEAR

< All Topics

Resets form field values to their defaults.

Syntax

FORM CLEAR object

Parameters

object

Can be
form
The name of a currently open form or display, all of whose fields are to be reset. Specify a particular instance of a form in brackets beside the object’s name.
formfield
The name of a particular field that is to be reset in a currently open form or display. Specify a particular instance of a form field in brackets beside the form field’s name.
([exp1 ],[exp2 ],[exp3 ])
Positive integers or expressions that evaluate to positive integers, that identify a particular form or form field to be cleared. Exp1 identifies the form number; exp2, the field number; exp3, the instance of the form or form field in the display. At a minimum, either exp1 or exp2 must be specified.

Example

add Customers from fCustomer

form clear fCustomer

Resets the values of all form fields in the fCustomer form to their default values after saving their current contents in an EntitySet called Customers.

form clear fMyForm[5]

form clear (2,,5)

The preceding two commands both reset the values of all form fields in the fifth instance of form number 2, called fMyForm.

form clear fMyForm.LastName

Resets all instances of a certain form field in a form.

 

SeeAlso

DISPLAY DEFINE

FORM OPEN

MENU CLEAR

THISFORM

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Table of Contents