Tuesday, September 6, 2011

STEP 001 hello world

The first language (ok the second, first was machine language) was BASIC

Many of use learned to program on color computer, commodore 64 with the integrated basic

Later with QBASIC, on pc computers

QBASIC cannot be used anymore as it is a dos application and take input and display results in a dos window or a low resolution graphic screen.

So you need to learn programming from a basic language still, but you do not have any free basic interpreter

You can learn with windows host script (.WSH or .VBS)
All you need is notepad, and save your file as .VBS

This basic scripting language have many commands and many objects that can be created in windows
A internet explorer object can be created for input and output
Now the "pure" will say: I want to use firefox. Well, you can't because the internet explorer object is registrated in windows and can be called from VBS, but firefox is not registrated with windows. So you cannot access firefox objects from VBS and use it as interface.

Let's start with the famous HELLO WORLD

open notepad
make a new file called --------------- test.VBS -------------
msgbox("Hello World")
-------------- end of file -----------------
save it on desktop
double click on it
and here is your box with "hello world" in it

Now thoses box are limited to a few line of text in output
and on input, one line of input

that is why we have to use an interface
since we don't want to multiply the developement time by 3 or 4, we will use internet explorer as interface
(who want to build grids, and crystal reports for two third of their programming time...)

No comments:

Post a Comment