InputBox Function

āĻāĻ•āĻŸāĻŋ āĻĄāĻžā§ŸāĻžāĻ˛āĻ—ā§‡ āĻāĻ•āĻŸāĻŋ āĻĒā§āĻ°āĻŽāĻĒā§āĻŸ āĻĒā§āĻ°āĻĻāĻ°ā§āĻļāĻ¨ āĻ•āĻ°ā§‡ āĻĨāĻžāĻ•ā§‡ āĻ¯ā§‡āĻ–āĻžāĻ¨ā§‡ āĻŦā§āĻ¯āĻŦāĻšāĻžāĻ°āĻ•āĻžāĻ°ā§€ āĻ˛ā§‡āĻ–āĻžāĻ° āĻ‡āĻ¨āĻĒā§āĻŸ āĻĻāĻŋāĻ¤ā§‡ āĻĒāĻžāĻ°ā§‡āĨ¤ āĻ‡āĻ¨āĻĒā§āĻŸāĻŸāĻŋ āĻāĻ•āĻŸāĻŋ āĻ­ā§‡āĻ°āĻŋā§ŸāĻŦāĻ˛ā§‡ āĻŦāĻ°āĻžāĻĻā§āĻĻ āĻ•āĻ°āĻž āĻšā§ŸāĨ¤

InputBox āĻšāĻ˛ā§‹ āĻāĻ•āĻŸāĻŋ āĻĄāĻžā§ŸāĻžāĻ˛āĻ—ā§‡āĻ° āĻŽāĻžāĻ§ā§āĻ¯āĻŽā§‡ āĻ˛ā§‡āĻ–āĻž āĻ¸āĻ¨ā§āĻ¨āĻŋāĻŦā§‡āĻļ āĻ•āĻ°āĻžāĻ¨ā§‹āĻ° āĻ¸ā§āĻŦāĻŋāĻ§āĻžāĻœāĻ¨āĻ• āĻĒāĻĻā§āĻ§āĻ¤āĻŋāĨ¤ OK āĻ•ā§āĻ˛āĻŋāĻ• āĻ•āĻ°ā§‡ āĻ…āĻĨāĻŦāĻž "āĻĢāĻŋāĻ°ā§‡ āĻ¯āĻžāĻ¨" āĻšā§‡āĻĒā§‡ āĻ‡āĻ¨āĻĒā§āĻŸ āĻ¨āĻŋāĻļā§āĻšāĻŋāĻ¤ āĻ•āĻ°āĻž āĻšā§ŸāĨ¤ āĻĢāĻžāĻ‚āĻļāĻ¨ā§‡āĻ° āĻŽāĻžāĻ¨ āĻĒā§āĻ°āĻĻāĻžāĻ¨ āĻšāĻ˛ā§‡ āĻ‡āĻ¨āĻĒā§āĻŸ āĻĒā§āĻ°āĻĻāĻžāĻ¨ āĻšā§ŸāĨ¤ āĻ†āĻĒāĻ¨āĻŋ āĻ¯āĻĻāĻŋ "āĻŦāĻžāĻ¤āĻŋāĻ˛" āĻšā§‡āĻĒā§‡ āĻĄāĻžā§ŸāĻžāĻ˛āĻ—āĻŸāĻŋ āĻŦāĻ¨ā§āĻ§ āĻ•āĻ°ā§‡āĻ¨, āĻ¤āĻžāĻšāĻ˛ā§‡ InputBox āĻāĻ•āĻŸāĻŋ āĻļā§‚āĻ¨ā§āĻ¯ āĻĻā§ˆāĻ°ā§āĻ˜ā§āĻ¯ā§‡āĻ° āĻ¸ā§āĻŸā§āĻ°āĻŋāĻ‚ ("") āĻĒā§āĻ°āĻĻāĻžāĻ¨ āĻ•āĻ°āĻŦā§‡āĨ¤

Syntax:


InputBox (Prompt As String[, Title As String[, Default As String[, xpostwips As Integer, ypostwips As Integer]]]) As String

Parameters:

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.

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 LibreOffice.

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 LibreOffice.

If xpostwips and ypostwips are omitted, the dialog is centered on the screen. The position is specified in twips.

Return value:

āĻ¸ā§āĻŸā§āĻ°āĻŋāĻ‚

Example:


Sub ExampleInputBox
Dim sText As String
    sText = InputBox ("Please enter a phrase:","Dear User")
    MsgBox ( sText , 64, "Confirmation of phrase")
End Sub

Please support us!