|
Inicio → WINDEV 25 → PROCEDURE VariantToXml(tabela, id) // FINALIDADE CONVERTER UM REGISTRO OU UMA TABELA EM XML |
PROCEDURE VariantToXml(tabela, id) // FINALIDADE CONVERTER UM REGISTRO OU UMA TABELA EM XML |
Iniciado por Boller, 05,may. 2023 21:49 - No hay respuesta |
| |
| | | |
|
| |
Miembro registrado 4.521 mensajes |
|
Publicado el 05,mayo 2023 - 21:49 |
// FINALIDADE CONVERTER UM REGISTRO OU UMA TABELA EM XML // // Summary: <specify the procedure action> // Syntax: //[ <Result> = ] VariantToXml (<tabela>, <id>) // // Parameters: // tabela: <specify the role of tabela> // id: <specify the role of id> // Example: // <Specify a usage example> // // variante (variant): // nomeRaiz (ANSI string): <specify the role of nomeRaiz> PROCEDURE VariantToXml(tabela, id)
sXML is string
IF id > 0 //hfilter para pegar o id que deseja gerar o xml sXML = HRecordToXML(tabela) RESULT sXML ELSE hora is Time = TimeSys() HExportXML({tabela},fCurrentDir()+fSep()+tabela+hora+".xml","",hExpCreation) sXML = fLoadText(fCurrentDir()+fSep()+tabela+hora+".xml",foAnsi) fDelete(fCurrentDir()+fSep()+tabela+hora+".xml",frReadOnly) RESULT sXML END
-- Adriano José Boller ______________________________________________ Consultor e Representante Oficial da PcSoft no Brasil +55 (41) 99949 1800 adrianoboller@gmail.com skype: adrianoboller http://wxinformatica.com.br/ |
| |
| |
| | | |
|
| | | | |
| | |
|