PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Creates an XML file with the data found in a Looper control (browsing Looper control or memory Looper control).
Note: By default, a style sheet (".XSL" file) is automatically generated when creating the XML file.
Versions 15 and later
PHP This function is now available for the PHP sites.
New in version 15
PHP This function is now available for the PHP sites.
PHP This function is now available for the PHP sites.
Versions 23 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
New in version 23
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
Example
WINDEVReports and QueriesUser code (UMC)
sFile is string
// File name
sFile = fSelect("", "", "Choose the export file", ...
"XML files (*.XML) *.xml", "xml", fselCreate + fselExist)
// The export is canceled if no name was specified
// Otherwise, export the content of LOOP_Customer
IF sFile <> "" THEN LooperToXML(LOOP_Customer, sFile)
WEBDEV - Server codeAjax
sFile is string
// File name
sFile = CompleteDir(fExeDir()) + "MyXML" + ConnectionCount() + ".xml"
// The export is canceled if no name was specified
// Otherwise, export the content of LOOP_Customer
IF sFile <> "" THEN LooperToXML(LOOP_Customer, sFile)
Syntax
<Result> = LooperToXML(<Looper Control> , <Name of XML File> [, <Options> [, <Source Row> [, <End Row>]]])
<Result>: Boolean
  • True if the file was created,
  • False otherwise.
<Looper Control>: Control name
Name of Looper control to use.
<Name of XML File>: Character string (with quotes)
Name and full path of XML file to create. The file is replaced by the new file if it already exists.
<Options>: Optional Integer constant
Configures the XML file to create.
taSelectedLinesExports the selected rows only (all the rows are exported by default).
taNoTitleOnly the data is copied into the file.
taNoXSLThe style sheet (".XSL" file) is not created
Versions 15 and later
taColumnsTitles
New in version 15
taColumnsTitles
taColumnsTitles
The title of columns is inserted into the file.
<Source Row>: Optional integer
Number of the row from which the export will start.
If this parameter is not specified, the source row is 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.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230std.dll
Linux wd230std.so
Minimum required version
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment