Code of the MSDN site gives this sample code for an input box.
Why hasn't the data type for the variables been declared? Is it because Input Box can only accept strings in these fields...and so it is implicit? But then Default is an integer?
Code:
Dim Message, Title, Default, MyValue
Message = "Enter a value between 1 and 3" ' Set prompt.
Title = "InputBox Demo" ' Set title.
Default = "1" ' Set default.
' Display message, title, and default value.
MyValue = InputBox(Message, Title, Default)
Why hasn't the data type for the variables been declared? Is it because Input Box can only accept strings in these fields...and so it is implicit? But then Default is an integer?