LassoScript Utility
Basics Browse Detail


Tag Link [Define_Prototype] Category Custom Tag
Type Process Source Available No
Support Preferred Version 8.0
Change Unchanged Data Source Any
Output Type None Security None
Implementation Internal Sets Lasso 8.5, Lasso 8.0


[Define_Prototype] installs a type instance into the tag map as a data type prototype. The tag requires two parameters: the name by which the prototype will be referenced (the tag name) and a reference to the data type that will be copied as the prototype.

This tag allows an instance to be set up with default values and then used again and again by calling the prototype name. Each time the prototype is called a new copy of the instance is created.

Note - If a -Namespace parameter is specified then it must appear betwen the name and the instance which defines the prototype.


[Define_Prototype: 'Name', Instance]

[Define_Prototype: 'Name', -Namespace='namespace_', Instance]


Required Parameters
Name The name for the prototype (the tag name).
Value The prototype value that will be copied (the tag result).
Optional Parameters
-Namespace The namespace for the prototype. This parameter must appear between the name and the value.


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