Mark functions let you mark, replace, and retrieve marked text, which are used to handle strings in runtime.
Marks the specified number of characters starting from a defined start position.
Syntax:
MarkText(StartPos, NoOfChars)
Parameters:
StartPos – A numeric value indicating the position within the string to start marking. StartPos=1 means the first character of the string.
NoOfChars – A number indicating the number of characters to be marked. If this value is negative, Magic xpa marks in the backward direction. For Edit Multi-line and Rich Edit controls, the new line character is counted as two characters.
Returns:
The number of characters marked. This function returns zero when:
No control is in focus.
The control in focus is not the Edit control.
This function is evaluated in the flow when the Magic xpa engine is not parked on an Edit control.
The handler is invoked for an event with the Force Exit set to Control or Record.