Talk:VBScript

message: 'Scripting' languages are labeled 'scripting' by what they are used for, not by their capabilities or limitations. 
This is a programming language article, and needs information on what paradigms VBScript supports, where it draws its roots from, etc.
See [/Python_(programming_language)] for an example of paradigm  description.  —Preceding unsigned comment added by 216.205.223.34 (talk) 11:16, 6 May 2009 (UTC)
thread_title: Programming language

message: There's a number of small issues with this entry that I'm not going to attempt to fix right now:
* The last VBScript version is more recent that VB6, so it contains a couple of features not in VB6, but the significant ones are in VB.NET -- specifically I'm thinking of multiple classes in one file.
* IE doesn't implement VBScript or JavaScript -- both of these are supported (hosted) like add-ins -- there could be (are?) other scripting languages supported.
* VBScript and JavaScript, when hosted by IE, can produce stand-alone programs, using .hta files.
Mark Hurd 02:44, 2 Oct 2004 (UTC)
thread_title: number of small issues

message: - VBScript has nothing to do with the newer VB.NET, except for the similarity of basic language keywords.
- IE in fact can host any active scripting langauge, as can any host. Windows Script Host (WSH), for example, can host other languages, including the third-party ActivePerl. 
- Technically speaking, IE does not host an HTA. An HTA (HTML application, or .hta file) is an HTML file which contains client-side code written in a supported language, such as VBScript. They are executed by mshta.exe, which instantiates the Internet Explorer rendering engine (mshtml) as well as any required language engines (such as vbscript.dll). This is not the actual Internet Explorer application, although it's not commonly understood that IE is in fact two components: The app, and the underlying HTML rendering engine.
- VBScript is considered "end of development" by Microsoft, meaning v5.6 is the last. However, it is not considered "end of life" and is scheduled for inclusion in forthcoming releases of Windows for the forseeable future. It has gained significant support from Windows administrators seeking an automation tool more powerful than the batch language first developed in the late 1970s.
-- IE7 installs VBScript 5.7. I couldn't find any official information on the improvements, and didn't run across any new feature yet, but some people reported improved performances. PhMajerus 17:00, 13 April 2007 (UTC)
replies: text: The minor improvements in 5.7 are listed in 5.7's Release Notes.  Also, I do not believe IE 7 installs v5.7 (on WinXP SP2 at least) because I checked two of my PCs that have IE7 and cscript still gives a v5.6 prompt.  Also, there's a mention of a separate download for v5.7 on Windows Script Host --Georgeryp 16:15, 11 September 2007 (UTC)
thread_title:  Notes 

message: VBScript has also been used as the foundation to provide a Visual Basic application environment on Windows CE (Pocket PC, Palm-size PC, Handheld PC and embedded devices), often referred to as VBCE.
In this environment, a desktop IDE similar to the classic Visual Basic IDE is used to create VBScript files and VB forms. The project get packaged in a single .vb archive, which is loaded on the device by pvbload.exe.
Windows CE Toolkit for Visual Basic 5 and Windows CE Toolkit for Visual Basic 6 added this environment to the classic Visual Basic IDE, replaced later by a standalone product called eMbedded Visual Basic 3.0.
This runtime environment loads the standard VBScript engine and feeds it with the script files contained in the .vb archive, loads the forms definitions and expose them as COM Automation objects to the script.
This environment, enhanced with ADO/CE and other ActiveX controls, provide an experience similar to Visual Basic on the desktop. Interpreting the code using the VBScript engine, this had the advantage of being CPU-idenpendant, which was a good thing with the different processor architectures supported by Windows CE.
The second version of the VBCE environment, supported by eMbedded Visual Basic 3.0, included support to invoke API functions from VBScript.
This environment is now replaced by VB.NET and the .NET Compact Framework.
PhMajerus 14:47, 20 April 2007 (UTC)
thread_title:  Visual Basic for Windows CE 

message: The main article now includes a list of values for MsgBox, but the complete list is useless, as it's only a small set of values that gets combined together.
Note VBScript includes constants for all these values, making them much easier to remember.
=== MsgBox ===
Buttons: vbOKOnly = 0, vbOKCancel = 1, vbAbortRetryIgnore = 2, vbYesNoCancel = 3, vbYesNo = 4, vbRetryCancel = 5.
Icons: vbCritical = 16, vbQuestion = 32, vbExclamation = 48, vbInformation = 64.
Flags: vbDefaultButton1 = 0, vbDefaultButton2 = 256, vbDefaultButton3 = 512, vbDefaultButton3 = 512, vbApplicationModal = 0, vbSystemModal = 4096 (vbDefaultButton* defines which button is the default button).
Return values: vbOK = 1, vbCancel = 2, vbAbort = 3, vbRetry = 4, vbIgnore = 5, vbYes = 6, vbNo = 7.
Buttons, icons and flags can be combined to get the desired buttons and icons on the MsgBox (using the Or operator).
As these values shows, the first button is the default if no other is specified (vbDefaultButton1 = 0) and the message box is application modal (vbApplicationModal = 0).
MsgBox returns the value corresponding to the selected button.
=== Colors ===
RGB Colors: vbBlack = &h00, vbRed = &hFF, vbGreen = &hFF00, vbYellow = &hFFFF, vbBlue = &hFF0000, vbMagenta = &hFF00FF, vbCyan = &hFFFF00, vbWhite = &hFFFFFF.
=== Strings ===
Strings: vbCr = Chr(13), VbCrLf = Chr(13)&Chr(10), vbFormFeed = Chr(12), vbLf = Chr(10), vbNewLine = Chr(13)&Chr(10) or Chr(10) (depending on platform), vbNullChar = Chr(0), vbNullString = null string, vbTab = Chr(9), vbVerticalTab = Chr(11).
=== Other ===
VBScript also includes constants for comparison modes, date and time values, date formats, error numbers, tristate values, and variant types.
VBScript being an Active Scripting engine, the host can also add its own constants to the engine.
Finally, Automation objects can contain their own constants in their type library, which some host let you import. For example, the Windows Script Host lets you import constants from type libraries using the <reference> element in WSF files, Windows Script components also use the <reference> element in WSC files, and Majerus.net Active Shell lets you import constants into an object using the GetConsts function.
PhMajerus 14:02, 3 May 2007 (UTC)
thread_title:  Constants 

message: VBScript also includes constants for comparison modes, date and time values, date formats, error numbers, tristate values, and variant types.
VBScript being an Active Scripting engine, the host can also add its own constants to the engine.
Finally, Automation objects can contain their own constants in their type library, which some host let you import. For example, the Windows Script Host lets you import constants from type libraries using the <reference> element in WSF files, Windows Script components also use the <reference> element in WSC files, and Majerus.net Active Shell lets you import constants into an object using the GetConsts function.
PhMajerus 14:02, 3 May 2007 (UTC)
thread_title:  Other 

message: I deleted these external links per Wikipedia: External links
*VBScript lessons
*W3Schools - Thorough VBScript Tutorial
*Tizag - Introduction to VBScript
*VBScript Debugger
*ScriptingAnswers (VBScript community)
*VBS Book adv.
*DevGuru - VBScript quick reference
*VBScript Tips & Trick
--Starionwolf 04:04, 27 February 2007 (UTC)
thread_title:  Deleted Excessive Links 

message: You can write a virus in any language. Should we have a criticism section for assembly because viruses have been written using that language?--71.232.157.145 (talk) 04:56, 7 December 2007 (UTC)
replies: text: That may be a valid criticism.--71.232.157.145 (talk) 23:38, 9 May 2008 (UTC)
thread_title:  Removed unnecesary criticism 

message: In an attempt to combat link spam, I've added the substituted template  to the external links section as per Wikipedia:Spam#Tagging_articles_prone_to_spam Christopher G Lewis (talk) 20:58, 15 February 2008 (UTC)
thread_title:  Link Spam 

message: Might worth including a section on VBScript viruses, and how the scripting environment has been locked down since the first release of VBScript to try to address this. (e.g. kill bit on high risk ActiveX controls, IE zone security etc) Socrates2008 (Talk) 03:57, 15 March 2008 (UTC)
thread_title: Viruses/Security

message: To avoid a WP:3RR issue: IMHO VBScript, and VB6, have an essential quality that brackets are not required for subroutine and function calls. It's one of the first major changes to VB.NET cited as a breaking change. As such I don't believe spurious ()'s should be included in the sample code. Mark Hurd (talk) 09:00, 3 March 2009 (UTC)
replies: text: Fair point. My understanding of best practice for function calls was to include brackets (even when not passing a parameter), as this helps distinguish them from sub procedures, where no brackets are used (unless, of course you use the Call function); and when writing sample code in an article, it's better to follow best practice rather than what you can get away with (unless the article is about that). However, on reflection, I realise that the Now function can accept no parameters anyway and references for the Now function shows it without a bracket (Now Function on MSDN). I have undone my reversion. Greyskinnedboy (talk) 23:10, 3 March 2009 (UTC)
replies: text: This is a question of style and readability.  Without brackets, it's not as easy for an untrained eye to differentiate between functions and statements, so I take the opposite view.  Furthermore, the use of brackets to denote functions is common across many languages, so many people unfamiliar with the langugage will intuitively understand what this means.  However there's absolutely no need to revert another author over this.  Option Explicit may be "spurious" too, but adds considerable value in improving code quality. Socrates2008 (Talk) 22:28, 25 April 2009 (UTC)
replies: text: Yeah, although I felt it was right for the code to use just Now, although I didn't revert the change because of the consistency, I disliked the dropping of () in the commentary. Mark Hurd (talk) 02:47, 26 April 2009 (UTC)
replies: text: For anyone who doesn't understand, it would look a bit odd having the comments say something different to the code, it's better for it to be consistent. From your and others' responses here, though, it looks like we might be getting toward consensus for brining back the () in the code and comments. After all, Option Explicit isn't needed but we think it's good to show it for best practice. Greyskinnedboy (talk) 05:29, 26 April 2009 (UTC)
thread_title:  Now() vs Now 

message: I propose to move the details about an HTML Application to the linked article on this topic. I am referring to the following sentences:  
mshta.exe is a 'Trusted Application Environment' provided by Internet Explorer. The 'Trusted Application Environment' implies that HTAs do not suffer the restrictions applied to applications running in the web or intranet zone, such as the inablity to access local files or network paths. Although HTAs run in this 'trusted' environment, querying Active Directory can be subject to Internet Explorer Zone logic and associated error messages.
These sentences are good content but seem to me more applicable to 'HTML Applications' than to 'VBScript' per se.
 
(Since I am new to this, I am making a proposal first, thereby putting more weight on the Wikipedia principle of civility than on the principle of being bold.) DonToto (talk) 21:36, 9 April 2010 (UTC)
thread_title:  Content on HTML Applications 

message: Couldn't .hta be included in the list of file extensions used with VBScript, seeing as .htm and .html are included?  —Preceding unsigned comment added by DonToto (talk • contribs) 21:37, 9 April 2010 (UTC)
thread_title:  List of File Extensions 

message: I have been working away (adding, editing, re-arranging) this article to try and improve the quality rating. Note that all the "original" content is still there in one form or another. Previous comments on this discussion page were / are extremely helpful. Have included the info, e.g. notes on constants (but no list), examples of VBScript best practice (to give a taste of the language) following suggested conventions re brackets, etc. More work contemplated - add one or two graphics, add back a few references, add 2 examples on relation to VBA and accessing DOM, mention class support in language section, and a few other bits. Any suggestions for what to add? Did VBScript really influence PowerShell from a linguistic / syntactic point of view? I have looked up a few users but not sure if anyone else actively looking at this page. Will shortly submit this page for re-assessment under WikiProject Computing and WikiProject Microsoft Windows.
DonToto (talk) 17:50, 6 May 2010 (UTC)
thread_title: May 2010 – Current quality rating

message: It appears there have been subsequent versions up to at least 5.8, as documented by Microsoft themselves:
http://msdn.microsoft.com/en-us/library/4y5y7bh5%28v=vs.84%29.aspx  — Preceding unsigned comment added by 212.219.142.118 (talk) 12:06, 28 May 2014 (UTC)
thread_title: May 2014 - Version History

message: please see http://krestenm.blogspot.gr/2007/12/vbscript-projects-in-visual-studio2.html  — Preceding unsigned comment added by 193.92.212.76 (talk) 12:25, 29 January 2015 (UTC)
thread_title:  Debugging in Visual Studio 

message: 1. In the article, VBScript is named as "Visual Basic Scripting Edition". The full name of VBScript should be "Microsoft® Visual Basic® Scripting Edition".
2. I think the name of this lead section :VBScript functionality not available in VB 6.0, makes user confuse. I suggest “VBScript functionalities”, the description section said these functionalities is not available in VB 6.0.
3. More information of the latest version VBScript.  — Preceding unsigned comment added by Skang7 (talk • contribs) 21:53, 11 September 2016 (UTC)
thread_title:  Edit Plan 

message: blasts big DX
 105.112.122.244 (talk) 11:55, 29 March 2023 (UTC)
thread_title:  Baluchi Baluchi state