Click here to Skip to main content
Licence CPOL
First Posted 13 Aug 2007
Views 104,886
Downloads 2,854
Bookmarked 52 times

VbScript Editor With Intellisense

By | 13 Aug 2007 | Article
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

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:

Dim pConnection As ADODB.Connection 

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

Dim pConnection 'As ADODB.Connection 

Which is equivalent to:

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)

About the Author

Rajneesh Noonia

Software Developer (Senior)

United Kingdom United Kingdom

Member

I am an Techinical Lead working with Seria India Ltd. (Previously Known as Xansa),Noida, India. I have worked with Microsoft Visual Basic 6.0 , SQL Server,COM ,WIN32 API. I have been playing with the .NET Framework since it was in beta but have been using it commercially since late 2004.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralNot able to run Vbscript intel Pinmemberchinnu19887:41 17 May '11  
GeneralRe: Not able to run Vbscript intel Pinmembereda200021:52 28 Sep '11  
QuestionHas anyone been able to upgrade it? Pinmemberdeafwing8:58 22 Feb '10  
GeneralGetting error even after referencing olelib.tlb PinmemberBrianA7:46 28 Dec '09  
GeneralNeed a debugger too? Get Vbsedit! PinmemberMember 43509894:07 30 Sep '09  
GeneralMy vote of 1 PinmemberThisSignUpBullShitIsGay4:20 29 Jan '09  
GeneralSky Player PinmemberVic Radford10:22 26 Jan '09  
Questionscripteditor, how you instal it? [modified] Pinmemberdangcao8:44 11 Jul '08  
AnswerRe: scripteditor, how you instal it? Pinmembermdanh200218:44 6 Jan '09  
GeneralWhen executing I'm not getting Intelesense window to display methods Pinmembersri_20088:23 27 May '08  
Questionpls..help.me..? Pinmembervijaysaxena9:49 22 May '08  
QuestionMISSING: Edanmo's OLE interfaces & functions v1.81 Pinmemberchopeen22:47 22 Aug '07  
AnswerRe: MISSING: Edanmo's OLE interfaces & functions v1.81 PinmemberRajneesh Noonia1:00 23 Aug '07  
This is Already Included in Typelib Folder in zip.See file Typelib\olelib.tlbSmile | :)
GeneralRe: MISSING: Edanmo's OLE interfaces & functions v1.81 Pinmemberchopeen2:06 23 Aug '07  
GeneralVERY Cool! [modified] PinmemberGraham Downs22:39 20 Aug '07  
GeneralRe: VERY Cool! PinmemberGraham Downs1:10 21 Aug '07  
GeneralRe: VERY Cool! -- Will someone please convert this? PinmemberSMerrill887:02 6 Mar '09  
Generalwonderful Pinmemberpita20008:18 13 Aug '07  
GeneralDamn... vb6 Pinmemberthund3rstruck7:20 13 Aug '07  
GeneralRe: Damn... vb6 PinmemberAlex Riedel21:12 20 Aug '07  

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

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

Permalink | Advertise | Privacy | Mobile
Web01 | 2.5.120529.1 | Last Updated 13 Aug 2007
Article Copyright 2007 by Rajneesh Noonia
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid