September 08 2010 08:00:47
Navigation
· Home
· Online Store
· Course Outlines (PDF Files)
· Sample Videos
· Contact Info
· Web Links
· Articles (Sample Code)

Other Videos
· WordPress (CMS)
· Joomla (CMS)
· Sharepoint

Other
· FAQ
· Search
Contribute to This Site
· Submit Link
· Get Benefitted Sites
No Competition
One of our so-called competitors offers under 6 hours of video training for a whopping $219 (choke, gasp, spew - you could hire a private tutor for that price). Did I mention that they ship their training on VHS tapes (remember those?). Check out our 'Course Outlines' link above. We offer a 2-days of training (15 hours) for $54 (2 CDs at $29 each). You watch our videos from a CD/ROM on your computer. We also include real-world lab/assignments in each course.
Articles: Getting Input (Prompt)
Getting Input (Prompt)
'==========================================================================
'
' NAME: GettingInput02.vbs 
' AUTHOR: Neal Walters 
' DATE  : 2/15/2005
' http://VBScript-Training.com 
'
' COMMENT: 
'
'==========================================================================

buttons = vbOKOnly ' this is the default, has numeric value of 0 
showmsg(buttons)

'------ adding standard icons ----------------

buttons = vbInformation 
showmsg(buttons) 

buttons = vbExclamation 
showmsg(buttons) 

buttons = vbQuestion 
showmsg(buttons) 

buttons = vbCritical 
showmsg(buttons) 

'------ Changing Buttons Available ----------------

buttons = vbOKCancel  
showmsg(buttons) 

buttons = vbAbortRetryIgnore
showmsg(buttons) 

buttons = vbYesNoCancel
showmsg(buttons) 

buttons = vbYesNo 
showmsg(buttons) 

buttons = vbRetryCancel 
showmsg(buttons) 

'------ Combining Options ----------------

buttons = vbOKCancel + vbExclamation 
showmsg(buttons) 

buttons = vbAbortRetryIgnore + vbQuestion 
showmsg(buttons) 

Function showmsg(buttons)
   resultNumber = MsgBox ("your message",buttons,"your title")
   Select Case resultNumber 
      Case vbOK
         resultMsg = "OK" 
      Case vbCancel
         resultMsg = "Cancel"
      Case vbAbort 
         resultMsg = "Abort"
      Case vbRetry 
         resultMsg = "Retry"
      Case vbIgnore 
         resultMsg = "Ignore"
      Case vbYes 
         resultMsg = "Yes"
      Case vbNo
         resultMsg = "No"
       
   End Select 
   WScript.Echo "Result Number=" & resultNumber &  " message=" & resultMsg 
End Function 
   





'==========================================================================
'
' NAME: GettingInput03.vbs 
' AUTHOR: Neal Walters
' DATE  : 2/15/2005
' http://VBScript-Training.com 
' COMMENT: 
'
'==========================================================================

Dim WshShell, BtnCode
Set WshShell = WScript.CreateObject("WScript.Shell")

BtnCode = WshShell.Popup("Do you feel alright? (You have 4 seconds to answer)", _
                         4, "Answer This Question:", vbYesNo + vbQuestion)


Select Case BtnCode
   case 6      WScript.Echo "Glad to hear you feel alright."
   case 7      WScript.Echo "Hope you're feeling better soon."
   Case -1     WScript.Echo "You were slow to respond, I assume you are sick!" 
End Select
     
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Order Now - View Products


Default Shipping:
Phone: 214-403-6006
Our Sites
Software Training
XML-Online-Training.com
Biztalk-Training.com
SharePoint-Training.com
DotNet-AddOns-Training.com
CMSTrainingVideos.com

Language
LanguageLovers.com
Render time: 0.05 seconds 432,183 unique visits