Click here to Skip to main content
15,888,401 members
Articles / Programming Languages / VBScript

VbScript Editor With Intellisense

Rate me:
Please Sign up or sign in to vote.
4.86/5 (19 votes)
13 Aug 2007CPOL1 min read 228.1K   9.3K   64   27
VbScript Editor With Intellisense
Screenshot - ScriptEditor.gif

Introduction

Intellisense in scripting languages like VBScript is like a dream for script programmers. The goal of this project is to provide VBScript editor with intellisense like it was available in most of Microsoft language editors. The control uses the type library reference to explore the public methods and functions exposed in any com library. The script developer has to code like VB 6.0 language (Dim pConnection as ADODB.Connection) and the editor will automatically convert the code into VBScript.

The complete VBScript alone with added references can be saved as an XML file. The Script property of control will return the pure VBScript which can be executed using the Microsoft Script Control.

Background

How to run the code:

Open the group project and press F5 vbScriptEditor_Group.vbg.

If the project says missing Edanmo's OLE Interface…. Then add reference to olelib.tlb in TypeLib folder.

Converting Vb 6.0 Syntax to vbscript

VBScript
Dim pConnection 'As ADODB.Connection 
Dim pRecordset 'As ADODB.Recordset 
Set pConnection = CreateObject("ADODB.Connection") 
pConnection.Open("Query String Here","User ID","Password") 
Set pRecordset = pConnection.Open("SQL Query Here") 
MsgBox(pRecordset.RecordCount) 

Developer continues to code like in VB 6.0 and the editor automatically converts the syntax to VBScript.

For example, the developer codes:

VB.NET
Dim pConnection As ADODB.Connection 

And the editor will convert it to (It will automatically insert ' before As):

VBScript
Dim pConnection 'As ADODB.Connection 

Which is equivalent to:

VBScript
Dim pConnection in vbScript

The Script property will return the pure VBScript.

ScriptRTF will return the coloured VBScript.

XMLProject will return the added references in the form of XML.

Make sure to post your comments and ratings for further developments and bug fixing.

History

  • 13th August, 2007: Initial post

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Comments and Discussions

 
QuestionHow to compile and Run Pin
Member 132350661-Jun-17 1:07
Member 132350661-Jun-17 1:07 
AnswerRe: How to compile and Run Pin
Member 129327341-Jun-17 1:58
Member 129327341-Jun-17 1:58 
QuestionCompile? Pin
Jason Pegel13-Apr-16 23:05
Jason Pegel13-Apr-16 23:05 
Questionthis is a very good Editor Pin
Member 118118713-Jul-15 6:26
Member 118118713-Jul-15 6:26 
BugType Mismatch Pin
essco@execpc.com27-Aug-14 17:06
essco@execpc.com27-Aug-14 17:06 
GeneralNot able to run Vbscript intel Pin
rnvc17-May-11 7:41
rnvc17-May-11 7:41 
GeneralRe: Not able to run Vbscript intel Pin
eda200028-Sep-11 21:52
eda200028-Sep-11 21:52 
QuestionHas anyone been able to upgrade it? Pin
deafwing22-Feb-10 8:58
deafwing22-Feb-10 8:58 
GeneralGetting error even after referencing olelib.tlb Pin
BrianA28-Dec-09 7:46
BrianA28-Dec-09 7:46 
GeneralNeed a debugger too? Get Vbsedit! Pin
Member 435098930-Sep-09 4:07
Member 435098930-Sep-09 4:07 
GeneralRe: Need a debugger too? Get Vbsedit! Pin
Slowly263543-Nov-16 10:39
Slowly263543-Nov-16 10:39 
ooohohoh....I gotta rant. Yes, VbsEdit *IS* a powerful vbscripting editor. In fact, to my knowledge it is unique; it is the only app *in the world* that does what it does. Unfortunately, it is NOT portable, and even if you figure out the key system (which I have), the key server limits the amount of keys you can use to 4, even though Adersoft claims that vbsedit can be used on multiple machines per license. And Adersoft refuses to sell network versions of the app.

This piss ant of an author is like the author of Microangelo. Like the author of Flux. They've buried their heads in the sand, and refuse to accept that the world has changed, and that nobody does their computing work on one PC. People have their data in the cloud now, and they work on whatever PC or device is at hand. These authors come from a windows era where if you found a nich, you protected the sh&^t out of your app and charged a pretty penny for it, hopefully getting rich and famous in the process.

Now, the author of PsPad *gets it*. This powerful editor IS portable, as it is freeware and it keeps user preferences in a configuration file in the installation directory. In my case, that installation directory is in the cloud fileserver at my former university, the M drive. So at whatever campus I'm on, whatever machine I happen to be working on (and my university has thousands upon thousands of machines), PsPad will work just fine, and even automatically bring up the script that I work on almost all the time. In fact, at my current university, they made PsPad a university standard and it's part of the common logon suite of apps.

Unfortunately, PsPad does not support Intellisense, and does not have an object browser. If it had these, I would *dump* vbsedit and never look back.

As you can see from the amount of threads on this project, there is a need for a portable vbsedit-like app. That supports .NET as well. Maybe someone will come up with one, and keep configuration data in a file in the install directory like PsPad does.

Suspicious | :suss:
Pudnik

NewsRe: Need a debugger too? Get Vbsedit! Pin
8wonder23-Oct-17 19:25
8wonder23-Oct-17 19:25 
GeneralMy vote of 1 Pin
ThisSignUpBullShitIsGay29-Jan-09 4:20
ThisSignUpBullShitIsGay29-Jan-09 4:20 
GeneralSky Player Pin
Vic Radford26-Jan-09 10:22
Vic Radford26-Jan-09 10:22 
Questionscripteditor, how you instal it? [modified] Pin
dangcao11-Jul-08 8:44
dangcao11-Jul-08 8:44 
AnswerRe: scripteditor, how you instal it? Pin
Minh Danh Nguyen (ToughDev)6-Jan-09 18:44
Minh Danh Nguyen (ToughDev)6-Jan-09 18:44 
GeneralWhen executing I'm not getting Intelesense window to display methods Pin
sri_200827-May-08 8:23
sri_200827-May-08 8:23 
Questionpls..help.me..? Pin
vijaysaxena22-May-08 9:49
vijaysaxena22-May-08 9:49 
QuestionMISSING: Edanmo's OLE interfaces & functions v1.81 Pin
Marek Grzenkowicz22-Aug-07 22:47
Marek Grzenkowicz22-Aug-07 22:47 
AnswerRe: MISSING: Edanmo's OLE interfaces & functions v1.81 Pin
Rajneesh Noonia23-Aug-07 1:00
Rajneesh Noonia23-Aug-07 1:00 
GeneralRe: MISSING: Edanmo's OLE interfaces & functions v1.81 Pin
Marek Grzenkowicz23-Aug-07 2:06
Marek Grzenkowicz23-Aug-07 2:06 
GeneralVERY Cool! [modified] Pin
Graham Downs20-Aug-07 22:39
Graham Downs20-Aug-07 22:39 
GeneralRe: VERY Cool! Pin
Graham Downs21-Aug-07 1:10
Graham Downs21-Aug-07 1:10 
GeneralRe: VERY Cool! -- Will someone please convert this? Pin
SMerrill886-Mar-09 7:02
SMerrill886-Mar-09 7:02 
Generalwonderful Pin
pita200013-Aug-07 8:18
pita200013-Aug-07 8:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.