GoFiler Legato Script Reference
Legato v 1.5d Application v 5.25a
|
Table of Contents | < < Previous | Next >> |
Chapter Eleven — SGML Functions (continued)
CompareHTMLGetFirstDifference Function
Overview
The CompareHTMLGetFirstDifference function compares a base HTML file to a revised HTML file and generates a list of insertions and deletions. If the files differthe function returns a handle to Compare HTML Enumeration Object.
Syntax/Parameters
Syntax
handle = CompareHTMLGetFirstDifference ( string base, string revised, [boolean casing],
[boolean
spaces], [boolean styles],
[boolean
entities], [boolean coding] );
Parameters
base
A string to a qualified filename of the base file.
revised
A string to a qualified filename of the revised file.
casing
A boolean indicating whether the result should show changes in letter casing. Default value is false.
spaces
A boolean indicating whether the result should show changes in white spacing. Default value is false.
styles
A boolean indicating whether the result should show changes in styling. Default value is false.
entities
A boolean indicating whether the result should show changes in character entity values. Default value is false.
coding
A boolean indicating whether the result should show changes in HTML tag coding. Default value is false.
Return Value
Returns a handle to a Compare HTML Enumeration Object or NULL_HANDLE on failure. Use the GetLastError function to retrieve error information.
Remarks
For more information on the comparison options see the CompareHTMLCreateMerged function documentation.
The Compare HTML Object returned by the CompareHTMLGetFirstDifference function contains the first difference between the base and revised files. The properties of the item can be retrieved with functions such as the CompareHTMLGetDifferenceProperties function. To move to the next entry in the folder, use the CompareHTMLGetNextDifference function.
Related Functions
Platform Support
Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL
Legato IDE
Table of Contents | < < Previous | Next >> |
© 2012-2024 Novaworks, LLC. All rights reserved worldwide. Unauthorized use, duplication or transmission prohibited by law. Portions of the software are protected by US Patents 10,095,672, 10,706,221 and 11,210,456. GoFiler™ and Legato™ are trademarks of Novaworks, LLC. EDGAR® is a federally registered trademark of the U.S. Securities and Exchange Commission. Novaworks is not affiliated with or approved by the U.S. Securities and Exchange Commission. All other trademarks are property of their respective owners. Use of the features specified in this language are subject to terms, conditions and limitations of the Software License Agreement.