Lasso Soft Inc. > Home

[ MaxRecords_Value ]

Method

[MaxRecords_Value] returns the value for the -MaxRecords command tag for the current database action. The default return value is 50 if no -MaxRecords paramater was specified.

This method can be used within the [Inline] ... [/Inline] methods 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 method cannot be used within [Records] ... [/Records] methods that reference a named inline. If -MaxRecords=All was specified in the database action then this method will return -1 as its value.

  • Syntax
maxrecords_value
Examples
  • Beginner

To return the maximum number of records that can be displayed in a single page after a database search:

Use the [MaxRecords_Value] tag. The following [Inline] ... [/Inline] tags perform a search in the People table of the Contacts database for all records and returns the value for the -MaxRecords parameter.

Code

Inline(-FindAll, -Database='Contacts', -Table='People', -KeyField='ID', -MaxRecords=5)
     'At most '+MaxRecords_Value+' records are displayed.'
/Inline

Recent Comments

In L9, this tag returns 'all' when -maxrecords='All' is specified, not -1 as stated. Please make it output -1.

Posted on: 21 February 2013

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft