TXT Extract Line

<< Click to Display Table of Contents >>

Navigation:  Actions > Strings >

TXT Extract Line

This action allows extracting a line by number from a text. The number has to be specified from 1 to the quantity of lines in a text. If the number is incorrect, the action will return an empty line. The action assigns the specified line to a variable for using it in the following steps.

TXTExtractLine

 

Text from External File

Specify the file name where it is necessary to count the number of lines. It is possible to select the name using the dialog of file selection. Using variables in the file name is possible.

 

Use this Text

You can set a text in the editing field explicitly. The text can also contain variables.

 

Line Number

Specify the number of a line which is necessary to extract from a text. Using variables is possible. If non-numeric value is specified, the action generates a run-time error.

 

Assign Extracted Line to Variable

Specify the name of the variable where the demanded line will be assigned.

 

Variable

Allows you to add a variable to the action or triggering event that you selected. You must place the cursor in a edit box in the settings dialog window of the action or event and then click the {V} button.

 

note Related Topics

STR Replace

STR Trim

STR Delete

STR Insert

STR Extract

STR Pos

STR Between

STR Length

STR format CSV line

TXT Delete line

TXT Insert line

TXT Number of Lines

TXT Comma-Text Conversion

TXT UTF-8 Conversion

Operations on lists