AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Looper
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
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 creating the XML file.
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 the LOOP_Customer Looper control
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 the LOOP_Customer Looper control
IF sFile <> "" THEN LooperToXML(LOOP_Customer, sFile)
Syntax
<Result> = LooperToXML(<Looper control> , <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: wd290std.dll
Versión mínima requerida
  • Versión 10
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 22/06/2023

Señalar un error o enviar una sugerencia | Ayuda local