Script Steps Reference
Table Of Contents
- Contents
- About script steps
- Script steps reference (alphabetical list)
- Control script steps
- Perform Script
- Pause/Resume Script
- Exit Script
- Halt Script
- If
- Else If
- Else
- End If
- Loop
- Exit Loop If
- End Loop
- Allow User Abort
- Set Error Capture
- Set Variable
- Install OnTimer Script
- Navigation script steps
- Go to Layout
- Go to Record/Request/Page
- Go to Related Record
- Go to Portal Row
- Go to Object
- Go to Field
- Go to Next Field
- Go to Previous Field
- Enter Browse Mode
- Enter Find Mode
- Enter Preview Mode
- Editing script steps
- Fields script steps
- Set Field
- Set Field By Name
- Set Next Serial Value
- Insert Text
- Insert Calculated Result
- Insert From Index
- Insert From Last Visited
- Insert Current Date
- Insert Current Time
- Insert Current User Name
- Insert Picture
- Insert QuickTime
- Insert Object (Windows)
- Insert File
- Update Link (Windows)
- Replace Field Contents
- Relookup Field Contents
- Export Field Contents
- Records script steps
- New Record/Request
- Duplicate Record/Request
- Delete Record/Request
- Delete Portal Row
- Delete All Records
- Open Record/Request
- Revert Record/Request
- Commit Records/Requests
- Copy Record/Request
- Copy All Records/Requests
- Import Records
- Export Records
- Save Records As Excel
- Save Records As PDF
- Save Records As Snapshot Link
- Found Sets script steps
- Windows script steps
- Files script steps
- Accounts script steps
- Spelling script steps
- Open Menu Item script steps
- Miscellaneous script steps
FILEMAKER SCRIPT STEPS REFERENCE 44
Related topics
Script steps reference (alphabetical list)
Contents
Set Selection
Purpose
Allows the user to specify the starting and ending position of a selection in a field.
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.
Compatibility
This script step is also supported in web publishing and in a FileMaker Server scheduled script.
Originated in
FileMaker Pro 6.0 or earlier
Description
The starting and ending 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
moves to the end position, and nothing is selected. If both start and end positions are
invalid, the cursor moves to the end of the field contents.
• No action is taken if the user attempts to perform a selection on a container field.
• Data selected out of visual range is scrolled into view.