Navigation:  thinBasic Modules > UI (User Interface) > CONTROLs > 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

 

 

 

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com