Click here to Skip to main content
6,292,426 members and growing! (10,856 online)
Email Password   helpLost your password?
Languages » VBScript » General     Advanced

VbScript Editor With Intellisense

By Rajneesh Noonia

VbScript Editor With Intellisense
VBScript, VB 6, .NET, Win2K, WinXP, Win2003, Vista, Dev
Posted:13 Aug 2007
Views:43,340
Bookmarked:38 times
Unedited contribution
Announcements
Loading...
 
Search    
Advanced Search
printPrint   Broken Article?Report       add Share
  Discuss Discuss   Recommend Article Email
12 votes for this article.
Popularity: 3.89 Rating: 3.60 out of 5
3 votes, 25.0%
1

2

3
2 votes, 16.7%
4
7 votes, 58.3%
5
Screenshot - ScriptEditor.gif

Introduction

Intellisense in scripting languages like vbscript is like a dream for script programmers. This goal of this project is to provide vbscript editor with intellisense like it was available in most of Microsoft language editor. The control uses the type library refrence to explore the public methods and function 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 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 convert the syntax to vbscript.

For example developer code

Dim pConnection As ADODB.Connection 

And the editor will convert it to (It will automaticaly 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 refrences in form of XML

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

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Rajneesh Noonia


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.
Occupation: Software Developer (Senior)
Location: India India

Other popular VBScript articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 15 of 15 (Total in Forum: 15) (Refresh)FirstPrevNext
GeneralMy vote of 1 PinmemberThisSignUpBullShitIsGay5:20 29 Jan '09  
GeneralSky Player PinmemberVic Radford11:22 26 Jan '09  
Questionscripteditor, how you instal it? [modified] Pinmemberdangcao9:44 11 Jul '08  
AnswerRe: scripteditor, how you instal it? Pinmembermdanh200219:44 6 Jan '09  
GeneralWhen executing I'm not getting Intelesense window to display methods Pinmembersri_20089:23 27 May '08  
Questionpls..help.me..? Pinmembervijaysaxena10:49 22 May '08  
QuestionMISSING: Edanmo's OLE interfaces & functions v1.81 Pinmemberchopeen23:47 22 Aug '07  
AnswerRe: MISSING: Edanmo's OLE interfaces & functions v1.81 PinmemberRajneesh Noonia2:00 23 Aug '07  
GeneralRe: MISSING: Edanmo's OLE interfaces & functions v1.81 Pinmemberchopeen3:06 23 Aug '07  
GeneralVERY Cool! [modified] PinmemberGraham Downs23:39 20 Aug '07  
GeneralRe: VERY Cool! PinmemberGraham Downs2:10 21 Aug '07  
GeneralRe: VERY Cool! -- Will someone please convert this? PinmemberSMerrill888:02 6 Mar '09  
Generalwonderful Pinmemberpita20009:18 13 Aug '07  
GeneralDamn... vb6 Pinmemberthund3rstruck8:20 13 Aug '07  
GeneralRe: Damn... vb6 PinmemberAlex Riedel22:12 20 Aug '07  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 13 Aug 2007
Editor:
Copyright 2007 by Rajneesh Noonia
Everything else Copyright © CodeProject, 1999-2009
Web16 | Advertise on the Code Project