Other script examples

Build 1501 on 14/Nov/2017  This topic last edited on: 9/May/2012, at 13:02

This script places the insertion point after all paragraph tags.

Ted.CursorStartPara

dim objCur = Text.GetCursor(modeSrcOn,cposCursor,False)

Do

  dim objDesc = objCur.Desc

  If objDesc.GetType = tptText Then

    Ted.CursorTo objcur

    Exit Do

  End If

  If objCur.Move(1) > 0 Then Exit do

Loop