RTF_SaveToFile

<< Click to Display Table of Contents >>

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

RTF_SaveToFile

 

Description

 

Save a Rich Edit control content into a RTF file.

 

Syntax

 

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

 

Returns

 

String, the saved 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 written

 

Remarks

 

Restrictions

 

See also

 

Examples