From f1c3329df60dd8e0d5fb495a1e2f12790eb7a829 Mon Sep 17 00:00:00 2001 From: Alain Romedenne Date: Tue, 6 Apr 2021 17:25:17 +0200 Subject: tdf#141474 InputBox Basic method signature Change-Id: Ie7e5a956e7871d964fb55d81ce639cff0f64642d Reviewed-on: https://gerrit.libreoffice.org/c/help/+/113643 Tested-by: Jenkins Reviewed-by: Olivier Hallot --- source/text/sbasic/shared/03010201.xhp | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/source/text/sbasic/shared/03010201.xhp b/source/text/sbasic/shared/03010201.xhp index 353d6a4425..5e7ee3543d 100644 --- a/source/text/sbasic/shared/03010201.xhp +++ b/source/text/sbasic/shared/03010201.xhp @@ -33,29 +33,28 @@ InputBox function - -InputBox Function +

InputBox Function

Displays a prompt in a dialog at which the user can input text. The input is assigned to a variable. The InputBox statement is a convenient method of entering text through a dialog. Confirm the input by clicking OK or pressing Return. The input is returned as the function return value. If you close the dialog with Cancel, InputBox returns a zero-length string (""). -Syntax: + -InputBox (Msg As String[, Title As String[, Default As String[, x_pos As Integer, y_pos As Integer]]]]) +InputBox (Prompt As String[, Title As String[, Default As String[, xPosTwips As Integer, yPosTwips As Integer]]]) As String -Return value: -String - -Parameter: - Msg: String expression displayed as the message in the dialog box. + + Prompt: String expression displayed as the message in the dialog box. Title: String expression displayed in the title bar of the dialog box. Default: String expression displayed in the text box as default if no other input is given. - x_pos: Integer expression that specifies the horizontal position of the dialog. The position is an absolute coordinate and does not refer to the window of the office application. - y_pos: Integer expression that specifies the vertical position of the dialog. The position is an absolute coordinate and does not refer to the window of the office application. -If x_pos and y_pos are omitted, the dialog is centered on the screen. The position is specified in twips. + xPosTwips: Integer expression that specifies the horizontal position of the dialog. The position is an absolute coordinate and does not refer to the window of the office application. + yPosTwips: Integer expression that specifies the vertical position of the dialog. The position is an absolute coordinate and does not refer to the window of the office application. +If xPosTwips and yPosTwips are omitted, the dialog is centered on the screen. The position is specified in twips. -Example: + +String + + Sub ExampleInputBox Dim sText As String @@ -63,6 +62,6 @@ MsgBox ( sText , 64, "Confirmation of phrase") End Sub - + \ No newline at end of file -- cgit