LassoScript Utility
Basics Browse Detail

[Rows_Array]

Tag Link [Rows_Array] Category Database
Type Substitution Source Available No
Support Preferred Version 7.0
Change Unchanged Data Source Any
Output Type Array Security Tag
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0

Description

The [Rows_Array] tag returns all of the records in the current found set as an array of arrays. The outer array contains one element for each record in the found set. Each element is itself an array that contains one element for each field in the record.

The [Field_Names] tag can be used to return an array of field names which map to the array returned for each record. The [Rows_Array] tag returns exactly the same data as the [Records] ... [/Records] and [Field] tags but in a more convenient form for iterating or other data processing.

Syntax

[Inline: ... ]
[Rows_Array]
[/Inline]

[Iterate: (Rows_Array), (Variable: 'Temp_Record')]

[Iterate: $Temp_Record, (Variable: 'Temp_Field')]

[Output: $Temp_Field]
[/Iterate]
[/Iterate]

Parameters

No Parameters Required.

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.