InsTedTextAt Method

Build 1501 on 14/Nov/2017  This topic last edited on: 23/Mar/2016, at 12:19

Description

Inserts a text string at the specified position interpreting GNML tags.

See also Cursor Object.

Syntax

Text.InsTedTextAt (objPos,strText)

ObjPos

Cursor object specifying the insertion position

StrText

string of text and/or tags

Special character

Use

No. of chars

Tag bracket >

">"

1

Tag bracket <

"<"

1

Start table ¦

"$" & chr(9)

2

Table column

chr(9)

1

Last tab row

"$" & chr(13) & chr(9)

3

Line break ¬

chr(13) & chr(10)

2

Paragraph break

vbcrlf & vbcrlf

4

Bell @

$@

2

Standard character

Use

No. of chars

@

@

1

$

$$

2

Greater than

"$>"

2

Less than

"$<"

2

Return value

Error code

Context

Text designer commands

Examples

dim objCur = Text.GetCursor(modeSame,cposCursor,True)

objCur.Move(1)

Text.InsTedTextAt (objCur,">f 9001<")

Insert the tag >f 9001< one character to the right of the cursor position:

Text.InsTedText (">hld 20pt<Universal declaration")

Inserts text Universal declaration in the type size and leading of 20pt

Text.InsTedText (">hld 20pt<Universal $@declaration")

Inserts text Universal declaration in the type size and leading of 20pt, with the Bell character inserted before "declaration"

Text.InsTedText (">co M<Price $$20")

Inserts text Price $20 in the color Magenta. Please note the double $$ to render the dollar sign.

Text.InsTedText ("One is less than two, two is greater than 1 (1$<2$>1) ")

Inserts the text One is less than two, two is greater than 1 (1<2>1) where < and > are interpreted as text and not as tag brackets.

For the meaning of the standard constants (eg. modeSame, cPosCursor) etc, see Constants related to Cursor and TxtPosDesc object.

See also

EditPasteTo, CursorTo, GetCursor, EditCopyRange, DelRange

InsText, InsTedText, InsTedXML, InsTedXMLAt, GetTxt

InsSpecialChar Method