Script Steps Reference

Table Of Contents
Description
Deletes the contents of the specified field in the current record. Clear removes the
contents of the field without placing the contents on the Clipboard. If you want to cut and
paste the field information, use the Cut script step on page 38. Use Undo immediately to
restore the contents.
In a web-published database, use a Commit Record/Request script step after a Clear
script step to update the record in the browser window.
Example
The following example clears the values in a repeating field with three repetitions.
Clear [Select, table::field[3]]
Clear [Select, table::field[2]]
Clear [Select, table::field]
Set Selection
Format
Set Selection [Start Position: <n>; End Position: <n>]
Options
Select Go to target field or click Specify to specify the field whose contents you
want to select.
Specify lets you set the starting and ending positions of a selection, either by
entering the start and end numbers directly or by using a calculation to determine
them.
Web compatibility
This script step is web-compatible.
Description
Allows the user to specify the starting and ending position of a selection in a field. The
values can be typed in directly or determined via a calculation. If no target field is specified
the current active field is used.
Notes
Field position is determined by the number of characters, including spaces, beginning
with position 1, the first character in the field. The selection includes all values
beginning with the Start Position and concluding with the End Position. For example,
if Field1 has the value “abcdefgh”, and the script parameters specify a start position
of “3” and an end position of “6”, the script step will return the selection “cdef”.
If the start position is valid and the end position out of range, everything from the start
position to the end of the field is selected. If the end position only is valid, the cursor