GoFiler Legato Script Reference
Legato v 1.5b Application v 5.24b
|
Table of Contents | < < Previous | Next >> |
Chapter Five — General Functions (continued)
GetLeaderFillPosition Function
Overview
The GetLeaderFillPosition function locates the starting position of a leader (including spaces).
Syntax/Parameters
Syntax
int = GetLeaderFillPosition ( string data );
Parameters
data
A string containing text and a leader.
Return Value
Returns an int as the first zero-based position of the left side of the leader or -1 if the parameter does not contain a leader. This function does not set the last error code.
Remarks
Leaders are the fill after a string, such as a table stub, for example:
Current assets Cash and cash equivalents....................... $ 9,478 $ 3,697 Accounts receivable, net........................ 18,191 24,301 Inventories ................................ 99,384 103,743 Prepaid expenses................................ 11,635 11,569 Other current assets............................ 4,592 6,436 -------- -------- Total current assets........................ 143,280 149,746
The string must end with the leader so in the above example, the numbers are removed.
The GetLeaderFillPosition function checks for both dot (‘.’) and ellipse (‘…’) leader fill. There is UNICODE support for ellipse leader fill characters. Dot leader fill must contain at least three periods to be considered leader fill. A dot leader fill may also contain spaces but only one space can exist between two dots (“. . . . . .”).
Related Functions
Platform Support
Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL
Legato IDE, Legato Basic
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.