Macro Language Reference > Macros > Tag > ttop
  
ttop
Description
Moves the text cursor to the start of the current style tag, a specified text stream, or the first text stream on the current page. it can also be set to move the cursor to a specific position within any of these items.
 
Example 282. Go to top of designated or current stream
Both ttop and " (double quote) have a similar effect. If you only issue the macro ttop you will go to the top of the stream, whereas " will go to the top of the style prior to the current cursor position:
ttop "pc1
"pc1
Syntax
ttop stream name:t? startpos:n? ( endpos:n? )
ttop
[no parameter]
Move text cursor to the top of the first text stream on the page.
+
Display the current level of style or reference in the edit bar.
-
Move back up to the previous level of style or reference and display it in the edit bar.
>
Use in conjunction with stream name to open the specified tag in the PTC ALD debugger, if it is active.
ttop>”tagName”
stream name
Name of the text stream. This can be any PTC ALD tag that contains text, e.g. a reference tag, an index tag, etc. If you leave stream name blank, but use a " (double quote) character, PTC ALD will go to the start of the current paragraph's style tag, for example:
ttop"
or
"
startpos
The position within the text to which the text cursor should move. This is the numeric position of the character as shown at the top of the edit bar. If startpos is followed by endpos the range of characters between startpos and endpos will be selected.
endpos
The position within the text stream at which the selection started with startpos should end. This is the numeric position of the character as shown at the top of the edit bar.
Related Links