Function EN Version 1.90

@RTAddText

RichText Text

Syntax

@RTAddText(TEXT1;STYLE2;RT3);

Description

Appends the TEXT TEXT1 in the font/style NUMBERLIST STYLE2 to the end of the Richtext RT RT3.

FN STYLE2:
1.   StyleDefinitionNumber
2.   Font
3.   Size
4.   options
5.   Color

1. StyleDefinitionNumber:
Reserved

2. Font:
0   Times Roman
1   Helvetica
4   Courier

3. Size:
0-255

4. options (add to combine):
0   Normal
1   Bold
2   Italic
4   Underlined
8   Strikethrough
16   Superscript
32   Subscript

5. Color:
0   Black   
1   White
2   Red
3   Light green
4   Blue
5   Magenta
6   Yellow
7   Cyan
8   Brown
9   Dark green
10   Dark blue
11   Violet
12   Khaki
13   Dark cyan
14   Gray

Example: @RTAddText(TEXT1;STYLE2;RT3)

DBHANDLE:=@OpenDB("TEST.NSF");
VIEWHANDLE:=@OpenView(DBHANDLE;"TEST VIEW");
VIEWPOSITION:=1:1:1:0:0:0:0:0:0:0;
NOTEHANDLE:=@OpenNoteByPosition(DBHANDLE;VIEWHANDLE;VIEWPOSITION;NOTEHANDLE);
rich text[NOTEHANDLE]:=@RTAddText("TEST";0:1:10:0:9;rich text[NOTEHANDLE]);
NOTEHANDLE:=@CloseNote(NOTEHANDLE;1);
VIEWHANDLE:=@CloseView(VIEWHANDLE);
DBHANDLE:=@CloseDB(DBHANDLE);

A database is opened, a document is searched for and opened, its RichText field is extended with the text "TEST", the document is saved, and finally the database is closed again.

RT3:=@RTInit;
TEXT1:="TEST";
STYLE2:=0:1:12:2:11;
RT3:=@RTAddText(TEXT1;STYLE2;RT3);

The text "TEST" is added to the RichText field RT.

Note : This text was machine-translated and may contain inaccuracies.