Tip: InputBox
Posted: Fri Oct 25, 2002 10:08 pm
Code updated For 5.20+
Restored from previous forum. Originally posted by PB.
Here's my own version of an input requester, which is superior to the
built-in InputRequester() command in these ways:
(1) It's "modal" (it locks the calling window until done).
(2) The prompt area is bigger and can have multi-line text.
(3) It has a Cancel button in addition to an OK button.
(4) It has a standard Windows look-and-feel about it.
(5) It plays the "question" audio prompt sound.
It works with or without a calling window, and here's how you call it:
a$=InputBox(title$,prompt$,default$)
Naturally prompt$ can include Chr(13) for multi-line text, and default$
can be empty (null) if you don't want a default entry placed in it.
I called it InputBox() so as not to clash with InputRequester(), and
because it emulates the Visual Basic InputBox() command.
Code edited out, see new v4.00 version below.
Restored from previous forum. Originally posted by PB.
Here's my own version of an input requester, which is superior to the
built-in InputRequester() command in these ways:
(1) It's "modal" (it locks the calling window until done).
(2) The prompt area is bigger and can have multi-line text.
(3) It has a Cancel button in addition to an OK button.
(4) It has a standard Windows look-and-feel about it.
(5) It plays the "question" audio prompt sound.
It works with or without a calling window, and here's how you call it:
a$=InputBox(title$,prompt$,default$)
Naturally prompt$ can include Chr(13) for multi-line text, and default$
can be empty (null) if you don't want a default entry placed in it.
I called it InputBox() so as not to clash with InputRequester(), and
because it emulates the Visual Basic InputBox() command.
Code edited out, see new v4.00 version below.