Skip to main content
Version: 11.2

Cols.prompt()

note

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

Cols.prompt()​

Gets the prompt of the first column in scope. This is determined by the 'Prompt' column attribute in USoft Definer.

Returns a string.

Syntax​

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

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 label = $.udb('EMP').cols('EMPNO').prompt();