Top
PowerCOBOL V11.0 Reference
FUJITSU Software

5.56 LoadFile Method

Description:

Load the contents of the file to the control.

ComboBox and
ListBox

Adds the contents of the file to the list box part.

TextBox

Sets the Text property to the contents of the file. The text values depend on RenderText property. Non-display values are to be ignored.

Used in controls:

ComboBox

ListBox

TextBox

Used in objects:

None.

Parameters:

VT_BSTR - FileNameX(8192)

Description of Parameters:

The name of the file to be read.

Return value:

None.

Example:

WORKING-STORAGE SECTION.

01 LoadFileName PIC X(256).

PROCEDURE DIVISION.

MOVE "C:\my.txt" TO LoadFileName

INVOKE CmText1 "LoadFile"

USING LoadFileName

Backward compatibility
method name:

LOADFILE

Backward compatibility
arguments:

X(260)