Salesforce

MarkText (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

MarkText

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.

  • The start position is not in the string.

See also:

CaretPosGet, MarkedTextGet, MarkedTextSet

The Online and Rich Client Samples projects (program VA03 and RVA03)

Reference
Attachment 
Attachment