Reference > Script steps reference > Editing script steps > Clear
 
Clear
Purpose 
Deletes the contents of the specified field in the current record.
See also 
Format 
Clear [Select; <table::field>]
Options 
Select entire contents deletes the entire contents of a field. If you do not use Select entire contents, only the selected portion of the field's data is deleted.
Go to target field specifies the field whose contents you want to delete.
Compatibility 
 
Where the script step runs 
Supported 
FileMaker Pro 
Yes 
FileMaker Server 
Yes 
FileMaker Go 
Yes 
Custom Web Publishing 
Yes 
FileMaker WebDirect 
Partial 
Runtime solution 
Yes 
Originated in 
FileMaker Pro 6.0 or earlier
Description 
This script step removes the contents of the field in the current record without placing the contents on the Clipboard. If you want to cut and paste the field information, use the Cut script step. Use Undo immediately to restore the contents.
Notes 
If you manually select field data before you run this script step in FileMaker WebDirect, the script step performs as if you did not make a selection. To select field data before you run this script step in FileMaker WebDirect, use the Set Selection script step.
Example 1 
Clears the Email field in the current record.
Show Custom Dialog ["Do you want to clear the customer's email address?"]
If [Get ( LastMessageChoice ) = 1]
Clear [Select; Customers::Email]
End If
Related topics 
Script steps reference (alphabetical list)
Script steps reference (category list)