ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Looper functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Creates an XML file with data from a Looper control (Looper control based on a data file or populated programmatically).
Remark: By default, a style sheet (".XSL" file) is automatically generated when the XML file is created.
Example
Reports and Queries
sFic is string
// Nom du fichier
sFic = fSelect("", "", "Choisissez le fichier d'exportation", ...
	"Fichiers XML (*.XML) *.xml", "xml", fselCreate + fselExist)
// Si le nom n'a pas été fourni, on abandonne l'export
// Sinon, on exporte le contenu du champ Zone répétée ZR_Client
IF sFic <> "" THEN 
	ZR_Client.VersXML(sFic)
END
Syntax
<Result> = <Looper control>.ToXML(<Name of the XML file> [, <Options> [, <Start row> [, <End row>]]])
<Result>: Boolean
  • True if the file was created,
  • False otherwise.
<Looper control>: Control name
Name of the Looper control to be used.
<Name of the XML file>: Character string
Name and full path of XML file to create. The file is replaced with the new file if it already exists.
<Options>: Optional Integer constant
Configures the XML file to create.
taColumnsTitlesThe title of the columns is inserted in the file.
taNoTitleOnly the data is copied to the file.
taNoXSLThe style sheet (".XSL" file) is not created
taSelectedLinesExports the selected rows only (all the rows are exported by default).
<Start row>: Optional integer
Number of the row from which the export will start.
If this parameter is not specified, the start row will be the first row found in the Looper control.
<End row>: Optional integer
Number of the row where the export will end.
If this parameter is not specified, the end row is the last row found in the Looper control.
Component: wd300std.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/20/2024

Send a report | Local help