Need to learn VB Script or Java Script fast.

Status
Not open for further replies.

Bagheera

Ars Tribunus Angusticlavius
8,773
Subscriptor
I work as a systems administrator and have no programming experience. For one of my projects, I need to create a pop-up screen in Windows that prompts my users for their name, phone number, etc. I think I can do this pretty easily with VBScript or JavaScript. Problem is, I don't know either of them. But I'm told they're pretty easy to learn. Can you recommend a quick and dirty reference I can use to learn the basics of these two languages in a short time?
 

Coleman

Ars Legatus Legionis
16,790
Subscriptor
Well, you can get the VBScript and JScript references from MS(http://msdn.microsoft.com/sripting) and go from there. But if you have no programming experience, you are approaching a larger problem of not just programming in language X, but programming at all. And as most will tell you, you don't want to learn to program in X, you just want to learn to program and then apply that to language X. The concepts don't change much accross languages, just the implementation. But I digress...

You mention getting some data in, but don't say what you want to do with it? If you want to store it in a db, then it means you'll likely need to know how to deal with COM objects in the framework you are working in, specifically the ADO stuff. If you wanted to write a file, then you'd be dealing with the scripting host FileSystem Object probably.

But for starters, input is easy enough, if you were to do a script runnable from the desktop, create a file with a .vbs extension, then edit it with a text editor.
put this in:
Dim myVar
myVar = InputBox("Enter something")
MsgBox "You entered " & myVar

save and then double click the vbs file.
So getting the input is easy enough...it's doing something with it after, that gets more complex.
-J
 
Status
Not open for further replies.