LassoScript Utility
Basics Browse Detail

[Shown_Count]

Tag Link [Shown_Count] Category Results
Type Substitution Source Available No
Support Preferred Version 3.0
Change Unchanged Data Source Any
Output Type Integer Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x

Description

[Shown_Count] returns the number of records shown in the current found set. Usually the same value as [MaxRecords_Value].

This tag can be used within the [Inline] ... [/Inline] tags that perform a database action or in a format file which is the response to an HTML form or URL that performs a database action. This tag cannot be used within [Records] ... [/Records] tags that reference a named inline.

Syntax

[Shown_Count]

Parameters

No Parameters Required.

Examples

To return the number of records shown in the results of a database search:

Use the [Shown_Count] tag. The following [Inline] ... [/Inline] tags perform a search in the People table of the Contacts database for all records and returns how many records are currently being shown.

[Inline: -FindAll,
    -Database='Contacts',
    -Table='People',
    -KeyField='ID',
    -MaxRecords=5]
  <br>Showing [Shown_Count] records.
[/Inline]

<br>Showing 5 records.