9.0
181
End Sub
InputBox$ Function
Syntax
InputBox[$](Prompt$[, Title$][, Default$][, XPos, YPos])
Group
User Input
Description
Display an input box where the user can enter a line of text. Pressing the OK button returns the string entered.
Pressing the Cancel button returns a null string.
Parameter Description
Prompt$ Use this string value as the prompt in the input box.
Title$ Use this strin
g
value as the title of the in
p
ut box. If this is omitted then the in
p
ut box
does not have a title.
Default$ Use this string value as the initial value in the input box. If this is omitted then the
initial value is blank.
XPos When the dialo
g
is
p
ut u
p
the left ed
g
e will be at this screen
p
osition. If this is omitted
then the dialog will be centered.
YPos When the dialo
g
is
p
ut u
p
the to
p
ed
g
e will be at this screen
p
osition. If this is omitted
then the dialog will be centered.
Example
Sub Main
L$ = InputBox$("Enter some text:", _
"Input Box Example","asdf")
Debug
.Print L$
End
Sub
InStr Function
Syntax
InStr([Index, ]S1$, S2$)
Group
String
Description
Return the index where S2$ first matches S1$. If no match is found return 0.
Note: A similar function, InStrB, returns the byte index instead.
Parameter Description










