Archive for the ‘Scripting’ Category

Simple VisualBasic script

Tuesday, July 17th, 2007

This is a simple demonstration of input, output and a small calculation done in VisualBasic.

The script asks the user to input a number of days, and the script
outputs how many seconds those days are.

The code is simple, open up notepad, or your text editor, and enter this:

  1. Dim Input
  2. Input = InputBox("Enter a number of days")
  3. sek = (input * 84600)
  4. msgbox (input & " days,  are " & sek & " seconds")

(more…)