Table of Contents

Mehrzeiliger Eingabedialog

Informationen

  • Kategorien: Kernel | Klassenformeln
  • Version: 12.1.0.1220
  • Veröffentlichungsdatum: Donnerstag, 20. August 2009
  • Entwickler: Götzen
  • Benötigt Datenbankänderung: Nein
  • Betreff: Funktion InputBoxEx() für Klassenformeln

Beschreibung

Besonderheiten: + Sie hat einen boolschen Rückgabewert für OK und Cancel + Der Parameter für den Wert wird per Referenz übergeben + Sie sind auch Multiline - Variante verfügbar. + Die Parameter iTypeFlags, Description und Prompt sind optional

usage: InputBoxEx( «string sTitle», «byref string/int Value» [, «int iTypeFlags» [,«string sDescription» [, «string sPrompt»]]] )

Beschreibung: InputBoxEx() Displays a prompt in a dialog box, waits for the user to input text and click a button, and returns 1 if OK button was clicked and 0 on CANCEL button. Parameters: sTitle = String expression displayed in the title bar of the dialog box. vValue = String or integer (by reference) variable to edited in the textbox. iFlags = Flags for type of the edit field. 0 = integer, 1 = string (default), 2 = multi line string.

sDescription = String expression displayed as the message in the dialog box. sPrompt = String expression displayed before the text box.

Beispielcode

var string $Value;
$Value = :cause;
if( InputBoxEx( "Bitte geben Sie einen Grund ein...", $Value, 2, "Beschreibung Zeile1\nBeschreibung Zeile2...", "Text:" ))
{
	 :cause = $Value;
}