FORM CLEAR

FORM CLEAR

Welcome to our Knowledge Base

Documentation | Blog | Demos | Support

< All Topics
Print

FORM CLEAR

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%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

pt_BRPortuguese