Lasso Soft Inc. > Home

[ Type ]

Method

[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
Value->Type
Examples
  • 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.

Code

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

Result

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