Skip to main content
K.Daube
Community Expert
Community Expert
January 25, 2016
Question

TextRange problem

  • January 25, 2016
  • 0 replies
  • 417 views

I had reported a strange problem with TextRange in my post "Working off paragraphs in two successive While loops" - which could be bypassed with Russ Wards help.

In a recent discussion in the German Frame users group the root of this problem may have been addressed by Johannes Graubner - albeit related to FameScript (translated by me):

«

The command Find FromTextLoc does not work in FrameScript 6 / FrameMaker 2015 - at least not as documented and working in FrameScript 5.2 and FrameMaker 11.

Find FromTextLoc(lvRange) String(xFM1) NoWrap ReturnRange(lvRangeNew)
ReturnStatus(bStat);

The search does not start at the locaction defined by lvRange, but at the current cursor location.

A workaround is

Find TextRange(lvRange) ScrollTo;
Find FromTextLoc(lvRange) String(xFM1) NoWrap ReturnRange(lvRangeNew)
ReturnStatus(bStat);

Since many script commands are 1:1 transformations of the respctive API commens I assume that this is a FrameMaker problem and hence also exists in ExtendScript. I have reported the bug to Frank Elmore (FrameScript).

»

This topic has been closed for replies.