InputRequester()

语法

Text$ = InputRequester(Title$, Message$, DefaultText$ [, Flags])
概要
Opens a blocking input requester to enter some text.

参数

Title$ Title of the requester.
Message$ Message displayed before the input field.
DefaultText$ Default text in the input field.
Flags (optional) Can be the following value:
  #PB_InputRequester_Password: set the field type as 'password'. The displayed text will be hidden.

返回值

Returns the text in the input field, or an empty string if the requester has been closed without hitting the "OK" button.

示例

  Input$ = InputRequester("Title", "Please make your input:", "I'm the default input.")

  If Input$ > ""
    a$ = "You entered in the requester:" + Chr(10)  ; Chr(10) only needed
    a$ + Input$                                                  ; for line-feed
  Else  
    a$ = "The requester was canceled or there was nothing entered."
  EndIf
  MessageRequester("Information", a$, 0)

已支持操作系统

所有

<- FontRequester() - Requester Index - MessageRequester() ->