<<

Contents

Search

>>

 

GET_STYLEDTEXT_FROM_FILE$

 

 

Function

 

 

Syntax:

GET_STYLEDTEXT_FROM_FILE$(<Type of Wordprocessor>,<Filename>)

 

<Type of Wordprocessor>

= <NUM-EXPRESSION>

<Filename>

= <STRING-EXPRESSION>

 

 

Meaning:

Reads styled word processor text from a file.

 

GET_STYLEDTEXT_FROM_FILE$ returns the read, formatted text as string. If an error occurs, OK is -1 and ERRORTEXT$ contains the error text. If no error occurs, OK = 0.

 

Parameter:

Type of Wordprocessor

Defines the type of the word processor:

 

Type

Wordprocessor

0

Editor

1

Styled Editor

2

RTF Editor

otherwise

Html Editor

 

Filename

Name of file

 

Sample:

STYLED_TEXT$ = GET_STYLEDTEXT_FROM_FILE$(3,"Info.html")

IF OK = 0

THEN H% = EDITOR_LOAD_STRING(#5.#EDITOR$,STYLED_TEXT$)

     IF H% <> 0

     THEN ... Error ...

     ENDIF

ELSE ... Error ...

ENDIF

 

See also:

EDITOR_LOAD_FILE

EDITOR_LOAD_STRING

EDITOR_GET_TEXT$

EDITOR_GET_STYLEDTEXT$

EDITOR_SET_COLOR

EDITOR_SET_CURSOR

EDITOR_SET_STYLE

GET_SYTLEDTEXT_LPRINTLENGTH

LPRINT_STYLEDTEXT