Lasso Soft Inc. > Home

[Self]

[Self] can be used within member tags of a custom type to reference other member tags or instance variables of the type.

This tag is often used to get the current type using [Self->Type] or to get a reference to the parent type of the current type using [Self->Up].

  • Syntax
  • Parameters
[Self]

[Self->(MemberTag)]

[Self->'InstanceVariable']
Examples

To get the type within a member tag:

Use the [Self] tag with the [Null->Type] tag. The following code performs one action if the type is 'MyInteger' and a different action if the type is 'MyDecimal'.

[Define_Tag: 'MyFormat']
  [If: (Self)->(Type) == 'MyDecimal']
    ...
  [Else: (Self)->(Type) == 'MyInteger']
    ...
  [/If]
[/Define_Tag]
Tag Link [Self] Category Custom Tag
Type Substitution Data Source Any
Support Preferred Version 5.0
Output Type Any Security Tag
Implementation Internal Sets Lasso 6.0, Lasso 5.0

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