Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

To VBScript or Not

Status
Not open for further replies.

itflash

Programmer
Jul 18, 2001
535
GB

Hi all

just a general question.

when writing small applications in vbscript, do most people use VB or just write in VBScript?

When do people use VB and to what extent. How about FoxPro?

 
err? When writings small vbscript apps, most people use vbscript- hence its called a vbscript app.
 

so when do you bring in com components and use vb etc?

 
You can use vbs to access COM components, you don't need to use VB. (The COM dll has to support automation though).
 
VBS is useful for scripting/automating tasks you perform on a repetitive basis. For instance, when a user's account is locked out of the network, I can click a script, enter the user's login at the prompt and their account is unlocked. No wasted trip to the server. We have a few applications that upon entry you have to enter a login/password and pass thru a few other prompts (clicking OK,yes,etc..) - I have those scripted so with the click of my script, I'm in the application.

VB (not .NET) itself is not what I would consider feature-rich due to it's heavy dependance on COM and ActiveX. However, there are a plethra of examples available and the language itself is relatively easy to pickup and maintain.

VFP is an OOP data-centric language. It has a native data format. The language itself is quite robust, the string handling functions are exceptionally fast, and the list goes on and on.

Choosing between VFP and VB typically comes down to which you are more comfortable with. Jon Hawkins
 
thanks for the replies.

i am writing some vbs applications at the moment, but wondering when do I need to bring in COM and ActiveX components? What do people normally do?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top