Product Documentation
Cadence SKILL Development Reference
Product Version IC23.1, June 2023

ilgGetText

ilgGetText( 
[ l_location_begin ]
[ l_location_end ]
[ w_tab ]
) 
=> t_text

Description

Returns the text between l_location_begin and l_location_end. If these locations are not provided, the entire text in the SKILL IDE editor window is returned.

Arguments

l_location_begin

Column coordinates of the cursor location.

l_location_end

Row coordinates of the cursor location.

w_tab

The window ID of the SKILL IDE editor window. Default is the current tab window.

Value Returned

t_text

The text between l_location_begin and l_location_end.

If l_location_begin and l_location_end are not provided, the entire text in the SKILL IDE editor window is returned.

Examples

ilgGetText()
=> "hello ide!"
If the specified locations are such that l_location_end precedes l_location_begin, the l_location_begin and l_location_end coordinates are swapped, so that ilgGetText returns the text between l_location_begin and l_location_end. For Examples:
ilgGetText ( '(1 1) '(5 1) )
=> "(pro"
ilgGetText ('(5 1) '(1 1) )
=> "(pro"

Related Topics

SKILL IDE Functions


Return to top
 ⠀
X