method Edit.Load (FileName as String)
Loads a file.

 TypeDescription 
   FileName as String A string expression that specifies the file being loaded. If the FileName parameter is empty, the control uses the FileName property to specify the file being loaded.  

Use the Load method to load the control's text from a file. If the file doesn't exist no errors occur. Use the FileName property to get the name of the file being loaded or saved. Use the Text property to access the control's text. Use the Save method to save the control's text to a file. The Load method changes the FileName property. If the AllowMark property is True, the control could load the text slowly, because each line requires to be parsed in order to find the expression to be highlighted on the control's vertical scroll bar, so we would suggest to use this option only before you check the time to load the file using this option.


Send comments on this topic.
© 1999-2008 Exontrol Inc, Software. All rights reserved.