Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter FiveGeneral Functions (continued)

PasswordUsernameBox Function

Overview

The PasswordUsernameBox function queries for a user name and password with optional description and domain.

Syntax/Parameters

Syntax

string[] = PasswordUsernameBox ( [string title], [string description],
                             [string username], [boolean windowsaccounts] );

Parameters

title

An optional string specifying the title of the password box to a maximum of 255 characters. If the string is empty, the default title is used.

description

An optional string specifying a description to be displayed in the top of the box to a maximum of 512. If omitted, this area of the dialog is collapsed.

username

An optional string specifying a default user name to a maximum of . The user can enter a different user name.

windowsaccounts

An optional boolean flag directing the display of the current domain and the return of a domain.

Return Value

A string array containing the username, password and optional domain or an empty array on failure. Use the GetLastError function to

Remarks

The function returns a string array with the following key names:

Username    — User name entered.

Password    — Password entered.

Domain      — Domain selected, only if the windowsaccounts flag is set.

Proper security precautions should be employed when storing and using passwords. This function abides by the Secure Memory Model.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic