Skip to main content
Version: 11.2

Cols.valueType()

note

This article is about the valueType() function of the Cols object.

Cols.valueType()

Gets the value type of the first column in scope, e.g. 'String', 'Number', or 'Date'.

Returns a string.

Syntax

$.udb( *ds* ).cols( [columns] ).valueType()

The required ds parameter is a data source selector.

The optional columns is a column selector. If omitted, all columns in scope are selected.

Example

let valueType = $.udb('EMP').cols('SALARY').valueType();