VBScript Basics, Part 6 | Input Box (InputBox)

SimplyCoded
SimplyCoded
56.6 هزار بار بازدید - 12 سال پیش - VBScripting (.vbs) Basic tutorial on
VBScripting (.vbs) Basic tutorial on how to create and use an InputBox. This can be used as a way to let your users communicate with your code, via passwords, personal information, or wordy responses.


Code Example:
______________________________________________________

Option Explicit
Dim name

name = InputBox("What is your age?" , "Information:")

If IsNumeric(name) And name="15" then
msgbox "correct"
ElseIf name = "" Then
MsgBox "please do not leave blank."
ElseIf Not IsNumeric(name) then
msgbox "please type in a number value."
ElseIf Not name = "15" then
msgbox "wrong age"
End If
______________________________________________________

Know the Basics:
------------------------------------------------------------------------------------------
x=InputBox("Message","Title","Default Text",xPos,yPos)
------------------------------------------------------------------------------------------
Inputbox "Message" , "Title" , "Default Text" , xPos , yPos
------------------------------------------------------------------------------------------
12 سال پیش در تاریخ 1391/10/05 منتشر شده است.
56,672 بـار بازدید شده
... بیشتر