Skip to content

EDITFIELD ​

EDITFIELD opens a simple edit box with a single line text field.

Syntax ​

leo-grammar
CC "AdoScript" EDITFIELD [ caption:strValue ] [ title:strValue ] [ text:strValue ].

#--> RESULT ecode:0|1  [ text:strValue ]

Parameters ​

  • caption (strValue) - sets the caption of the text field.
  • title (strValue, optional) - sets the title of the edit box.
  • text (strValue, optional) - sets the default text.

Returns ​

  • ecode (intValue) - is set to 0 if the user hits the OK button, otherwise to 1.
  • text (strValue) - contains the entered text if ecode was 0. It is not present if ecode is 1.

Details ​

Key shortcuts (accelerators) can be set by using '~'. (See example below.)

See Also ​

Examples ​

asc
CC "AdoScript" EDITFIELD title:"Enter web address" caption:"Web ~address:" text:"http://www.adoxx.org"
IF (ecode = 0) {
   CC "AdoScript" INFOBOX (text)
}

Opens the following window:

EDITFIELD

Versions and Changes ​

Available since ADOxx 1.3