11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Caché</strong> <strong>ObjectScript</strong> Functions$TEXTReturns a line of source code found at the specified location.$TEXT(label+offset^routine)$TEXT(@expr_atom)$T(label+offset^routine)$T(@expr_atom)Parameterlabel+offset^routine@expr_atomOptional — A line label in a routine.Optional — A positive integer that identifies the line to be returned.Optional — A separate routine that resides on disk.Optional — An expression atom that uses indirection to supply alocation.Description$TEXT returns a line of source code found at the specified location. The source code isreturned as text and is not executed at the reference point. If $TEXT does not find sourcecode at the specified location, it returns the null string. In the returned source code, $TEXTreplaces any whitespace (including tab characters) at the start of the line or between the labeland the body of the line, with a single space character. $TEXT does not recognize the Returncharacter that terminates the line.ParameterslabelThe label within the current routine or, if the routine parameter is also supplied, in a separateroutine.offsetIf specified alone, the offset indicates a line number within the current routine. If specifiedwith the label parameter, the line number is calculated from the start of the label. If specifiedwith routine (and without label), the line number is calculated from the start of the separateroutine.304 <strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!