ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV 2024 feature!
Help / WLanguage / WLanguage functions / Controls, pages and windows / 
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Saves the contents of a Code Editor control to a file.
Example
sFile is string
// Opens the file picker
sFile = fSelect("", "", "Select a file...", "WLangage code (*.WL)" + TAB + "*.WL", "*.WL")

IF sFile <> "" THEN
	// Saves the WLanguage code present in the Code editor control to the file passed as parameter
	CodeEditorSave(CODEEDT_Example, sFile)
END
Syntax
<Result> = CodeEditorSave(<Code Editor control> , <File to save>)
<Result>: Boolean
  • True if the code in the Code Editor control was saved to the file,
  • False otherwise.
<Code Editor control>: Control name
Name of the Code Editor control to be used.
<File to save>: Character string
Name and full path of the file to which you want to save the contents of the Code Editor control.
Business / UI classification: Business Logic
Component: wd290obj.dll
Minimum version required
  • Version 2024
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/07/2024

Send a report | Local help