Navigation:  thinBasic Modules > UI (User Interface) > Dedicated Control Functions > RTF Control >

RTF_LoadFromFile

Previous pageReturn to chapter overviewNext page

 

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