5,422,921 members and growing! (18,387 online)
Email Password   helpLost your password?
Languages » VBScript » General     Advanced

VbScript Editor With Intellisense

By Rajneesh Noonia

VbScript Editor With Intellisense
VBScript, VB 6, VB, .NET, Windows, NT4, Win2K, WinXP, Win2003, VistaVS6, Visual Studio, Dev

Posted: 13 Aug 2007
Updated: 13 Aug 2007
Views: 21,166
Bookmarked: 25 times
Announcements
Want a new Job?



Search    
Advanced Search
Sitemap
10 votes for this Article.
Popularity: 3.64 Rating: 3.64 out of 5
2 votes, 20.0%
1
0 votes, 0.0%
2
0 votes, 0.0%
3
2 votes, 20.0%
4
6 votes, 60.0%
5
Note: This is an unedited contribution. If this article is inappropriate, needs attention or copies someone else's work without reference then please Report This Article
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


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
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 11 of 11 (Total in Forum: 11) (Refresh)FirstPrevNext
Subject  Author Date 
Questionscripteditor, how you instal it? [modified]memberdangcao9:44 11 Jul '08  
GeneralWhen executing I'm not getting Intelesense window to display methodsmembersri_20089:23 27 May '08  
Questionpls..help.me..?membervijaysaxena10:49 22 May '08  
QuestionMISSING: Edanmo's OLE interfaces & functions v1.81memberchopeen23:47 22 Aug '07  
AnswerRe: MISSING: Edanmo's OLE interfaces & functions v1.81memberRajneesh Noonia2:00 23 Aug '07  
GeneralRe: MISSING: Edanmo's OLE interfaces & functions v1.81memberchopeen3:06 23 Aug '07  
GeneralVERY Cool! [modified]memberGraham Downs23:39 20 Aug '07  
GeneralRe: VERY Cool!memberGraham Downs2:10 21 Aug '07  
Generalwonderfulmemberpita20009:18 13 Aug '07  
GeneralDamn... vb6memberthund3rstruck8:20 13 Aug '07  
GeneralRe: Damn... vb6memberAlex 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-2008
Web20 | Advertise on the Code Project