Lasso Soft Inc. > Home

[Include_Once]

[Include_Once] inserts the specified format file into the current format file. Any Lasso code in the included format file is executed as if were placed in the current format file at the location of the [Include_Once] tag.

Accepts a single parameter, the name of the format file to be included.

If [Include_Once] is used multiple times referencing the same Lasso page then only the first [Include_Once] will actually perform the include. Subsequent [Include_Once] tags which reference the same file will do nothing.

Container tags cannot be started within one file and closed in the other, but the [Include] tag can be contained within container tags which are opened and closed within the same format file.

Note: [Loop_Count] cannot be used within an include file to get the current repetition of a container tag around the [Include_Once] tag. Instead, store the loop count in a variable.

  • Syntax
  • Parameters
[Include_Once: 'File Path']
Required Parameters
File Name The name of the file to be included.
Examples

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

Tag Link [Include_Once] Category Include
Type Substitution Data Source Any
Support Preferred Version 8.5
Output Type String Security None
Implementation Internal Sets Lasso 8.5

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