Lasso Soft Inc. > Home

[ Include_CurrentPath ]

Method

[Include_CurrentPath] returns the path to the current Lasso page which is being processed. This will be the same as [Response_FilePath] for files which are being processed directly, but different for include and library files.

  • Syntax
Include_CurrentPath
Examples
  • Beginner

Determining if a file was included or requested directly:

Compare the value of the [Response_FilePath] and [Include_CurrentPath] methods. If they agree then the page is being loaded directly, otherwise the page is being loaded as an include or library file.

Code

if(Response_FilePath == Include_CurrentPath)
    'This page was loaded directly.'
else
    'This page was loaded as an include.'
/if

Result

This page was loaded as an include.

Recent Comments

No Comments found

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