Lasso Soft Inc. > Home

[ type ]


[Null->Type] returns the data type of a value.

Methods for Null can be used on values of any data type including custom, third party data types.

  • Syntax
  • Beginner

To display the type of a value:

Use the [Null->Type] method. The following example stores values of different types in an array, then fetches the type for each value.


local(values = array('Hello', 123, 123.456, Null))
with v in #values 
do => {^
    #v + ': ' + #v->type + '\r'


Hello: string
123: integer
123.456000: decimal
: null

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