RTF_LoadFromFile

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Types > Richedit Control > Richedit Control Commands >

RTF_LoadFromFile

 

Description

 

Load a Text or RTF file into a Rich Edit control.

 

Syntax

 

s = RTF_LoadFromFile(hWnd, ctrlID, FileName, FileType)

 

Returns

 

String, the loaded buffer.

 

Parameters

 

Name

Type

Optional

Meaning

hWnd

Number

No

Handle of the dialog containing the RichEdit control

ctrlID

Number

No

Control identifier assigned to the control during CONTROL ADD ...

FileName

String

No

Full path name of the file to load

FileType

Number

No

Either %SF_TEXT or %SF_RTF specifies the type of file to be read

 

Remarks

 

Restrictions

 

See also

 

Examples