LOADFILE$ function

Purpose: LOADFILE$ loads a file into a string variable.


 Syntax:

 RetStr$ = LOADFILE$(Filename$)

 Parameters:

  • RetStr$ Returned string containing loaded file. Be sure to dimension the string to a size large enough to hold the file.
    
     DIM RetStr$ * LOF(FileName$)
    
    
  • FileName$ String variable or literal containing name of file to be loaded into RetStr$.

Example:


 DIM a$ * LOF("MyData.Txt")
 a$  =  LOADFILE$("MyData.Txt")
 PRINT a$

COMBOBOXLOADFILE statement

Purpose: COMBOBOXLOADFILE loads a text file into a combobox control.


 Syntax:

 COMBOBOXLOADFILE(hComboBox, FileName$)

 Parameters:

  • hComboBox Handle to combobox control into which file will be loaded.
  • FileName$ String variable or literal containing name of file to be loaded into hComboBox.

EDITLOADFILE statement

Purpose: EDITLOADFILE quickly and easily loads a EDIT control with a text file.


 Syntax:

 EDITLOADFILE(hEdit, FileName$)

 Parameters:

  • hEdit Handle to edit control
  • FileName$ Text file to be loaded

LISTBOXLOADFILE statement

Purpose: LISTBOXLOADFILE loads a text file into a listbox control.


 Syntax:

 LISTBOXLOADFILE(hListBox, Filename$[, Append, HScrollAdj])

 Parameters:

  • hListBox Handle to listbox control into which file will be loaded.
  • FileName$ String variable or literal containing name of file to be loaded into hListBox.
  • Append [OPTIONAL] boolean TRUE will append the file to the existing list.
  • HScrollAdj [OPTIONAL] boolean TRUE will auto adjust the Horizontal scroll to the contents.