Talk:Visual Basic
From Wikipedia, the free encyclopedia
This article has been nominated for Version 0.7 of the offline Wikipedia release but did not meet the standards for importance. It has been put on Wikipedia:Release_Version_Nominations/Held_nominations for further review. Please see that page for details.
Archives |
/Archive1 |
[edit] External VB6 link
Hello Angelo Cruz, I just tried to add a link to an external site that I think is very helpful. The site currently and will always deal only with Visual Basic 6 information. Many VB6 sites are not up to date or don't even exist any more once VB.NET was realeased. However, like this wiki discribes many business still use VB6 heavily. This site is for those business. I am wondering what needs to be done in order for this site to be considered a valuable asset to the VB community? As it was immediatly removed from the external links section when I added it. I hope this makes sense - I am not trying to be a pain or annoy anyone, so if I am missing something please let me know. The link is vb6.us.
Thanks, Mjwest10 20:38, 20 February 2007 (UTC)
- I'm the one that reverted your edit. The main reasons were:
- There is already a long list of sites. Wikipedia is not a list of links
- There was no comment to go along with the edit
- I seem to recall that link was added a while ago and got reverted. (I tried to go back and find that, but I just tried to find that, but couldn't.) wrp103 (Bill Pringle) 02:05, 21 February 2007 (UTC)
-
- That makes sense, except for I think even though there is a long list of VB6 sites some of them are not nearly as useful as the vb6.us website. For example the Visual Basic Sample files link goes to http://undim.blogspot.com/ - this is a BLOG that has only three posts on it and a bunch of ads. Another example is the ABOUT.com site - it goes to a page that only has a few VB.NET samples - seems to be much better placed on the VB.NET Wiki page. Another one is the Beginner Visual Basic 6 tutorials (http://aphnetworks.com/tutorials) this link goes to a page that has a bunch of tutorials related to PHP, windows tips, and other things and only a few Visual Basic related material. This website is of some use, but it seems like a site committed only to VB6 would be a good link to have. This is why I added it, but I didn't think about the fact that I should have commented along with it - sorry about that. Would it be appropriate for me to replace the visualbasic.about.com link with the www.vb6.us link? Please let me know.
- Thanks, Mjwest10 16:02, 21 February 2007 (UTC)
-
- As a side note - I just noticed the last link on the page (vbaccelerator) is simply a link to a bunch of advertisements.
- Mjwest10 16:07, 21 February 2007 (UTC)
-
-
- Why don't you delete the references which you think aren't appropriate, since you spotted them? (It is easier to get forgiveness than permission. ;^) If you can get the list down far enough, then adding vb6.us won't be such a deal. Make sure you explain your edit!
- BTW - you should use colons to indent each new thread. This helps people keep straight who said what when. ;^) wrp103 (Bill Pringle) 16:49, 21 February 2007 (UTC)
- Sounds good - While we've been talking - two more links have been added. I am going to remove those new ones and go through and figure out any dead/useless links. Thanks for all your help and patience.
- Just updated the external links - I removed any dead links, ones that were not directly VB6 related, or ones that were specific to one tutorial - for example a tutorial that explained how to create a hash tree in VB. Now we have room to include other VB6 tutorial sites - but I would recommend people discuss them first - to make sure its not just a site that is a bunch of ads. Does this seem reasonable? Mjwest10 18:52, 21 February 2007 (UTC)
- Sounds good - While we've been talking - two more links have been added. I am going to remove those new ones and go through and figure out any dead/useless links. Thanks for all your help and patience.
-
—The preceding unsigned comment was added by Mjwest10 (talk • contribs) 18:15, 21 February 2007 (UTC).
-
-
-
-
-
- I added a comment to the Tutorial section of the article suggesting they discuss any additions on the talk page before adding anything. That way, if anyone adds an entry, especially without any comment, it can be reverted right away.
- You're getting the hang of Wikipedia. Great job! Now, remember to sign your posts on the talk pages with four tildes (~~~~) wrp103 (Bill Pringle) 19:47, 21 February 2007 (UTC)
-
-
-
-
--200.59.173.14 19:43, 15 March 2007 (UTC)
D.cr59 22:08, 7 May 2007 (UTC)d.cr59 The MS VB6 syntax, not documented much (not at all to say the truth!!), is available here VB6 Complete Syntax. Excuse me for my unusual action yesterday..
[edit] Popularity
"it currently competes with C++ and JavaScript as the third most popular programming language behind C# and Java."
Doubtful. The article referenced is almost 2 years old. More recent data suggest otherwise:
--200.59.173.14 19:43, 15 March 2007 (UTC)
- My guess is that we could find a number of articles that would rank languages differently, but I agree that the more recent article should take precedent, and we should probably add a date to the statement. wrp103 (Bill Pringle) 22:54, 15 March 2007 (UTC)
[edit] Controversy section
I pruned most of the controversy in this edit. The previous version can be seen here. This section had been tagged for cleanup since May 2006 and was almost entirely unsourced. It also compromised a major portion of the article. I believe that my edit helped to focus the article on the language itself rather than various opinions about the language's strenghts or weaknesses. If a controversy section is necessary, statements obviously need to be attributed and reliably sourced. ChazBeckett 02:10, 17 March 2007 (UTC)
Visual Basic permits something like this: A = 10 B = "20" C = A + B
Isn't this "Weak Typing"? —Preceding unsigned comment added by 200.133.215.2 (talk) 17:26, 9 October 2007 (UTC)
- Yes, it is (but not to be confused with dynamic typing). -- int19h 06:32, 10 October 2007 (UTC)
[edit] NEXTSTEP?
There's no mention of the NEXTSTEP Interface Builder... —The preceding unsigned comment was added by 84.210.16.80 (talk) 00:34, 2 April 2007 (UTC).
[edit] Pros/Cons of VB compared to other languages
Does anyone have a link to a good comparison of VB to other languages? Of course the general consensus is that VB is not suited for enterprise use (although used anyway), but I would like to have solid proof before adding it to this article. I haven't been able to find a good comparision besides my own opinion of the language. -- Xandell 04:49, 21 April 2007 (UTC)
- I'm not sure if anyone's actually written up a comprehensive comparison, but one place to look around might be in some of the MVP areas, with particular attention to issues with distributed code. From what I understand, the most significant issues with VB (relative to less restricted languages) lie in some of the finer points of using COM. Just about anything else is supported in one way or another or can be farmed out to a dll in another language. --Mr Wednesday 23:38, 25 April 2007 (UTC)
[edit] Disambiguation: VB = Victoria Bitter
In Australia, it is very common to refer to Victoria Bitter as VB. wikipedia.org/VB redirects here. Would it be appropriate to add a link to (if you meant Victoria Bitter...) at the top of this page? Mikel Ward 08:20, 8 May 2007 (UTC)
- I don't see the redirect, VB is a disambiguation page and Victoria Butter is already listed there. —Ocatecir Talk 20:34, 12 May 2007 (UTC)
[edit] Adding VB Project Files
I personally feel that we should add .vbp files or forms or modules for people to see. Are we allowed to do that?
--Drnoitall.hello 00:15, 9 May 2007 (UTC)
- I don't think that is a good idea. Those files are created by the tools, so seeing what they look like doesn't really help them to do anything. wrp103 (Bill Pringle) (Talk) 03:06, 9 May 2007 (UTC)
I see. It was just a thought.--Drnoitall.hello 08:53, 12 May 2007 (UTC)
[edit] VBScript?
A recent edit tried to introduce VBScript into the context of the language preference poll. The way that it was done left a sentence that didn't make a whole lot of sense, so I reverted the change. I'm curious, though, about whether VBScript makes up a significant portion of the reported percentage. If it does, that information should be worked in somehow. --Mr Wednesday 02:18, 5 June 2007 (UTC)
- The problem I have with this is that VB and VBScript are different languages. It is like claiming that Java and Javascript are the same language. -- wrp103 (Bill Pringle) (Talk) 04:08, 5 June 2007 (UTC)
-
- I know that, but I think it's possible that such nuance might get lost in a large survey. --Mr Wednesday 20:29, 5 June 2007 (UTC)
- Yes I made the original edit. I agree in retrospect that it came off clumsy... I tried to keep the original reference intact and add in VBScript. I think that it is unusual that VBScript is not referenced somewhere in the heading as it is a big source of confusion for me (diff of VB vs. VBScript). Thanks for bringing up the discussion. My desire is to somehow mention the role of scripting (JavaScript, VBScript) in a web environment and that VBScript is the other major scripting language. Although VB and VBS are different languages, the difference should be linked in somehow; Explanation can follow as an article heading, but discriminatory mention should be in the header. // Brick Thrower 04:10, 6 June 2007 (UTC)
-
- They are entirely different languages. Although syntactically similar, there are many subtle differences that can cause you to get burned if you think of VBScript as a form of VB.
-
- For example, VBScript doesn't handle shortcut evaluation while VB does. So the lines:
IF I>0 and TBL(I)>0 THEN X=y END IF
-
- Will execute differently. VBScript will generate a runtime error if I is negative.
-
- Likewise:
S="ABC" S = S & "DEF" S = S & "GHI"
-
- Is common practice in VB, but will cause major problems if used on ASP pages. This is because strings are handled differently by the two languages. The above code will cause significant overhead for VBScript.
- Not exactly that Strings are handled differently, any more than Integers are: they aren't. But compilation is handled differently. In VB6 the code S=1: S=S+1: S=S+1 would be compiled as S=3 (VB6 used the Visual Studio compiler). Since VBS does not do the optimisation step, manifest constants are handled differently, and will cause significant overhead.150.101.166.15 05:24, 25 September 2007 (UTC)
- Is common practice in VB, but will cause major problems if used on ASP pages. This is because strings are handled differently by the two languages. The above code will cause significant overhead for VBScript.
-
- There are probably a number of sites that list the differences. We got burned pretty bad once when writing an early ASP application. We couldn't figure out why it was running so slow until we read the fine print. :-( -- wrp103 (Bill Pringle) (Talk) 04:57, 6 June 2007 (UTC)
-
-
- This was the point of my original edit. I am discovering things like your examples also. Your differences should be explained somewhere in the body of the article (sub heading VB vs. VBScript?) but I wanted some sort of link to VBScript in the main header of this article that could tip the initial browsing user (like me) to the (possibly) appropriate article on VBScript. Just the confusion in the names alone warrants mention in the heading, but I am not sure how to do that. Right now VBScript is only first mentioned in the second heading of the article. // Brick Thrower 06:37, 6 June 2007 (UTC)
-
-
- Last I knew, VB does not have shortcut evaluation, hence the futzing around related to it with VB.NET where they first changed the semantics of the And and Or operators, and then backtracked and added new shortcut operators. Two observations: First, this is a natural progression of the lack of boolean logic in the language, x And y is an arithmatic expression; second, the order of evaluation of the members of an expression is unspecified, and you can get nasty Heisenbugs if side effects in one part of an expression affect the evaluation of the other (having been bitten by same in production code). --Mr Wednesday 16:47, 14 June 2007 (UTC)
-
-
- I've cut "(namely inefficient string concatenation and absence of short-cut evaluation)" VB was notorious for ineffecient string concatenation, but you can put that back if you think you know better. The remark about short-cut evaluation was just wrong: Use the case statement in VB to get short-cut evaluation, because the If statement doesn't do that. —Preceding unsigned comment added by 150.101.166.15 (talk) 07:03, 31 August 2007 (UTC)
-
[edit] What is Dim short for?
Luxophage 16:13, 8 June 2007 (UTC)
- It is short for "Dimension". The original version of BASIC didn't require declaring an array, all you needed to do was write something like T(A%) and the interpreter would assume T was an array and create it with 8 cells. If you wanted to have an array that was longer than 8, you needed to declare its dimension:
DIM T(12)
- (Remember that originally variables were limited to a single letter, optionally followed by a single digit.) As the language evolved, a need arose for non-executable statements (REM was an executable statement, it just didn't do anything). My guess is that somebody figured out they already had a non-executable statement and just adapted it for all declarations, not just array sizes. There was no need for type declarations in the original BASIC - X was Float, X% was Integer, and X$ was String, and they were all separate variables, so you could have something like: X=X%*1.5. -- wrp103 (Bill Pringle) (Talk) 16:31, 8 June 2007 (UTC)
-
- It's also similar to old-style Fortran (before the advent of IMPLICIT NONE), where you get implicitly-typed scalars without a declaration statement but need to use a DIMENSION declaration to create an array. I harp on this a lot, but there are quite a number of similarities between the languages (including the IDE understanding the Fortran form for declaring a double-precision constant, something that I doubt more than a handful of people know). It's too bad they let the Java zealots loose on .NET, people with a Fortran background might have had more appreciation for the existing language.
-
- (I'll have to check and see if VB still counts the type declaration character as part of the name, I'm not sure if I realized that.) --Mr Wednesday 16:47, 14 June 2007 (UTC)
- @and create it with 8 cells: Your assumption is flawed:
- (I'll have to check and see if VB still counts the type declaration character as part of the name, I'm not sure if I realized that.) --Mr Wednesday 16:47, 14 June 2007 (UTC)
10 for i = 1 to 100 20 a(i) = i 30 print a(i) 40 next RUN 1 2 3 4 5 6 7 8 9 10 Subscript out of range in 20 Ok
-
-
- You're welcome. Shinobu 05:21, 2 September 2007 (UTC)
-
It means Declare in Memory. —Preceding unsigned comment added by 74.134.164.46 (talk) 07:58, 21 December 2007 (UTC)
[edit] Links
I have removed the tutorials per the discussion on WT:EL. I have replaced them with a link to Dmoz which is much more comprehensive and removes the need for us to make decisions about external links in this way.-Localzuk(talk) 16:46, 14 June 2007 (UTC)
- Thank you! I've been trying to keep trolls from adding links to spam sites. It looks like a couple crept in while I wasn't looking. :-( -- wrp103 (Bill Pringle) (Talk) 16:58, 14 June 2007 (UTC)
-
- Edit protection has been added after I filed a AIV. Please keep an eye out for this spam on other VB related articles, use {{uw-spam3}} or {{uw-spam4}} when you revert it, and report back here if it occurs on other pages. We may need to add these three URLs to the m:Spam blacklist. John Vandenberg 14:38, 16 June 2007 (UTC)
-
-
- I have a question about this latest addition. A while back I cleaned up the links area of this section. I feel I made it pretty valuable. Part of why people come to wikipedia is to spring board to relevant sites. I understand the DMOZ plan, but part of the problem we run into with Visual Basic 6 is that most sites that were Visual Basic 6 related are now VB.NET and its hard for people to find any good VB6 information. To be completely forthcoming, part of the reason I take such an interest in this is that I have created a site devoted to only VB6 content. I feel it is a great site and a great resource. I don't sell anything on it and the only advertisement is a few google adsense ads to help fund my efforts to host and maintain it. I would love to hear other people's view on my comments and see if there is any way to have my site listed again. I don't wish to spam the article or have my site listed if people don't think its valuable. Let me know, thanks.
-
Mjwest10 16:01, 18 June 2007 (UTC)
-
-
-
- The problem is that Wikipedia isn't a link directory - we are here to present an analysis and provide sources. External links are an extra and as this is a subject area where there will be so many sites out there, keeping the links trimmed will be a constant job. It is better to stick to the dmoz link. If you feel that the dmoz category doesn't do the job, remember that that is a user submission/edited site also. The main thing is that external links have to comply with our rules, and the ones I removed didn't. Finally, posting a link to your own site would be completely unacceptable due to our rules regarding conflict of interest, notability and authority. -Localzuk(talk) 17:32, 18 June 2007 (UTC)
- Thats unfortunate to hear. I understand that the DMOZ is a user submission/edited site as well and I am working to get it to include links to visual basic classic information but unfortunately its a slow process. On the other hand I already went through the process of petitioning the group here at wikipedia to include my site and people felt it was a useful and worthwhile site. That is why it was added. It was not spam or a junk site. I understand the rules regarding conflict of interest, notability and authority - that is why I discussed the site here first. It was approved by the discussion community before it was added. Can you explain to me how the vb6.us site did not comply with the rules? Thanks in advance. Mjwest10 21:00, 18 June 2007 (UTC)
- The problem is that Wikipedia isn't a link directory - we are here to present an analysis and provide sources. External links are an extra and as this is a subject area where there will be so many sites out there, keeping the links trimmed will be a constant job. It is better to stick to the dmoz link. If you feel that the dmoz category doesn't do the job, remember that that is a user submission/edited site also. The main thing is that external links have to comply with our rules, and the ones I removed didn't. Finally, posting a link to your own site would be completely unacceptable due to our rules regarding conflict of interest, notability and authority. -Localzuk(talk) 17:32, 18 June 2007 (UTC)
-
-
i think this article should be renamed to visual basic (not in visual studio .net—The preceding unsigned comment was added by 68.49.212.45 (talk • contribs) 23:13, 12 July 2007.
[edit] Differences in string handling?
One of the footnotes states, "For example: S="ABC" : S = S & "DEF" : S = S & "GHI" is common practice in VB, but will cause major problems if used on ASP pages. This is because strings are handled differently by the two languages. The above code will cause significant overhead for VBScript."
What are the differences that are referenced? I know, for example, that VB's string handling can result in pretty substantial memory overhead, and I believe that it's mainly done using the underlying Windows BString facilities. --Mr Wednesday 19:17, 10 August 2007 (UTC)
- VBScript creates a new string for each append operation, which generates a lot of overhead. This is similar to using String instead of StringBuffer in Java. -- wrp103 (Bill Pringle) (Talk) 22:16, 10 August 2007 (UTC)
-
- I'm not sure if VB does exactly the same thing, but I know that the performance and/or memory usage in a string concatenation in VB is suboptimal — I've tested it myself. I wouldn't be surprised if this is a shared misfeature, rather than purely a VBScript issue. --Mr Wednesday 20:09, 30 August 2007 (UTC)
- It's a difference in the way compilation is handled -- not in the way strings are handled. VB6 would do the concatination at compilation: VBS does the concatination at run time. If you use string variables instead of string constants the behaviour is the same.150.101.166.15 05:32, 25 September 2007 (UTC)
- I'm not sure if VB does exactly the same thing, but I know that the performance and/or memory usage in a string concatenation in VB is suboptimal — I've tested it myself. I wouldn't be surprised if this is a shared misfeature, rather than purely a VBScript issue. --Mr Wednesday 20:09, 30 August 2007 (UTC)
[edit] "Here be monsters" and other old wives tales...
1. The introductory paragraph and "Language Features" section manages to ignore that VB is clearly an Object Oriented language, as opposed to an IDE for assembling visual components written in other langauges (which hasn't been true since VB4). The last sentence merely states that it 'has basic object oriented support'. VB6 has and supports user defined classes and class hierarchies and supports abstraction, encapsulation, and polymorphism via implementation inheritance, but somehow it doesn't qualify as an OO language. Please see... Talk:Comparison_of_programming_languages#Visual_Basis_has_as_much_a_right_to_be_called_OO_as_any_other_language_which_lacks_some_aspects_of_OO.
2. The "Programming constructs not present in Visual Basic" section makes some strange points: -> VB lacks C++ & Java Error Handling. Should read: try, catch, and finally blocks (found in many languages) which can be implemented in VB if you wish. (You can actually implement a version of error handling that is far more consistent with the principles of OOP (such as a customized Err object that catches error events) than a glorified GoTo struture like "On Error" or "try catch finally".
3. If there is any doubt as to whether VB6 competes for dominance in the business world, (the cited graph from Aug. 2007 now refutes the doubter that cited it) surely we must wonder about Javascript (this must be a proxy for web-based applications, because I'm sure a lot more web development is done with server side PHP AND ECMAscript than just Netscape's proprietary version of it), and the lack of C (embedded systems aside, C still attracts an out-sized portion of projects by every survey I've ever seen, including the cited table.)
-
- Keep in mind the TIOBE graph merges VB6 and VB.NET —Preceding unsigned comment added by 200.59.173.14 (talk) 15:58, 19 November 2007 (UTC)
4. The deleted "Controversy" section speaks to the article's bias which is more apparently more difficult to purge than the assemblage of VB old wives tails found within:
- Anybody that would complain about creating a new variable with a typo (because they didn't use Option Explicit) doesn't deserve to be considered a VB programmer. Do people judge C as controversial because newbie C developers sometimes type x=100 when they meant x==100?
- VB has a whole 2MB runtime (actually I think the VB6 runtime is closer to 8MB). The .Net framework is at least 20+ MB's. How about a JVM?
- VB has a reputation for poor performance? Compared to what - C? Try some business domain typical operations like complex string handling or DB recordset manipulation and then compare that with Java's string handling or DB operations via JDBC. How about memory consumption? How many Java apps run in less than 50MB's? .Net?
- How about development time for a typical OLAP business application? (Compare against Java or .Net) The only reason a VB program would suffer from poor performance is because the programmer should have taken the opportunity to seek another profession. I'm sure many people have seen similar travesties in SQL or (insert language here), but we don't hear anyone complaining that SQL or (insert langauge here) is slow. —Preceding unsigned comment added by 208.115.200.62 (talk) 18:24, August 26, 2007 (UTC)
- Regarding point 2, I'm responsible for the way that text is currently worded. I'm fluent in VB and fluent in C++ as well, though a little out-of-practice with both as my current work involves mainly Fortran. The text that I replaced claimed that VB does not have exception handling at all, which is clearly false as the On Error facility is a form of exception handling. However, the form and capabilities are not identical to C++ and Java, which I considered to be common frames of reference. Perhaps it would be better to simply state that it does not have a try-catch format, or delete the bit altogether.
- I've never really felt compelled to do some sort of custom error object in VB. As long as you're working with only in-house components, error number plus description have always been adequate to my needs. The only real issue comes in when you start tacking on additional components with their own error numbers.
- I don't see the point to discussing the deleted controversy section. It's deleted, after all. You certainly don't seem to want to resurrect it, so let's focus on any improvements that may need to be made to the existing text.
- --Mr Wednesday 20:18, 30 August 2007 (UTC)
-
- First off, I would encourage you (208.115.200.62) to create a user account.
-
- As for point #1, I believe that you can only extend your own classes; you can't extend the Microsoft base classes.
-
- I also agree with you on point #2, and suggest that you make the change. (Preferably after you create a user account. ;^)
-
- I'm not sure of your point for #3. Do you believe the article questions that VB competes with the other languages listed?
-
- As for #4, I agree with your assertion that anyone who doesn't use "Option Explicit" shouldn't be considered a VB programmer. Unfortunately, I have seen a number of VB programs that our company paid good money for that not only didn't use Option Explicit, but generated all kinds of errors when it was added. But, as Mr. Wednesday said, that section is already deleted, so we can ignore it.
-
- Once again, I would encourage you to get an account. I hate to see good editors stay anonymous. -- wrp103 (Bill Pringle) (Talk) 08:59, 31 August 2007 (UTC)
[edit] Other MS Basic
I think a discussion of the relationship to Excel Basic and Access Basic would be interesting, if anyone knows anything. For example, the VB varient is apparently based on an Excel XLOPR, VB dates are Excel (Lotus 123 compatible) dates, Access Basic was developed in parallel with VB and there must have been some overlap, because its the same language with a different forms engine etc. Also, VB was clearly a MSBASIC compatible VB: was there any code overlap? —Preceding unsigned comment added by 150.101.166.15 (talk) 06:30, 31 August 2007 (UTC)
[edit] Bankers Rounding
I added (using the Windows Library), because, although I didn't want to make the article longer, rounding is done by a Windows DLL, and as I recall it was a Windows upgrade that changed VB from schoolboy rounding to bankers rounding. If you don't like it, cut it back out again, I won't cry. 150.101.166.15 06:40, 31 August 2007 (UTC)
- I've cut it out again. Your assertion that a Windows DLL does the rounding is based on the assumption that VB's rounding changed due to a Windows upgrade. I have consulted the documentation for VB4 and this is not the case. This is not the same as saying that rouding is not done by a Windows DLL, but it has no place in the article until we a) know it's true and b) can provide a citation. Shinobu 05:16, 2 September 2007 (UTC)
[edit] Rename to Visual Basic (Classic)
Because MS has another product called VB now, and unless you rename your article, it will eventually just be replaced with something else. —Preceding unsigned comment added by 150.101.166.15 (talk) 07:05, 31 August 2007 (UTC)
- No it won't. No name change is necessary, nor desirable. See Visual Basic .NET for the "other VB". Shinobu 05:09, 2 September 2007 (UTC)
I second the name change. Visual Basic is now part of the Visual Studio 2005 family. Visual Basic 6 and below are now antiquated and depreciated. Visual Basic should be renamed to Visual Basic 6, or Visual Basic (Classic), or Visual Basic (Legacy). Just because you may not like Visual Basic 2005 does not make these two pages names correct, in fact, Microsoft has dropped .NET from the name entirely since Visual Studio 2005. GuideX2 (talk) 22:59, 18 November 2007 (UTC)
[edit] Visual Basic is limited to unsigned 8-bit integers and signed integers of 16 and 32 bits.
Idea that Currency "can be be accurately used in place of Integers" seems odd: I think it was more common to use DOUBLE in place of large integers. That's only a 48 bit integer, (Currency is 64), but it was easier to use, and most importantly, it was around long before Currency turned up. 150.101.166.15 05:50, 25 September 2007 (UTC)
- When dealing with currency, I don't think you would ever want to use any form of floating point numbers because of roundoff problems. -- wrp103 (Bill Pringle) (Talk) 15:50, 25 September 2007 (UTC)
- It was common to use double for currency: Lots of financial applications were written in VB3. The important thing was to be compatible with Excel, which used doubles. The currency type was introduced because people did not ever want to use any form of floating point numbers, but here's the thing: 10 years in finance programming (1995-2005) and I never saw a VB/VBA/Excel program using the currency type, only double. But that's not the point I was raising: I was talking about large integers. Something like this:
- "the type DOUBLE was commonly used when larger integers were required"150.101.166.15 (talk) 02:37, 21 November 2007 (UTC)
- It was common to use double for currency: Lots of financial applications were written in VB3. The important thing was to be compatible with Excel, which used doubles. The currency type was introduced because people did not ever want to use any form of floating point numbers, but here's the thing: 10 years in finance programming (1995-2005) and I never saw a VB/VBA/Excel program using the currency type, only double. But that's not the point I was raising: I was talking about large integers. Something like this:
[edit] Performance and other issues section
The second paragraph in this section is problematic. Firstly, the writer does not appear to understand the VB object system because it talks about difficulty understanding when a copy of an object is created. This is not difficult to understand at all — unless you explicitly ask for a copy of an object to be created, you get a new reference (modulo any differences arising in remote automation, which is something I'm not all that familiar with).
If the discussion of objects is corrected, the paragraph becomes disjoint. The first sentence talks about "poor memory management" and "non-standard programming constructs". But nothing that follows presents a real issue with poor memory management (in fact, I'm not convinced there's any evidence of VB having memory management issues aside from GUI objects and large string modification) nor with non-standard programming constructs.
In my mind, the only serious discussion that can be had about performance revolves around two things: the built-in GUI objects don't always perform as cleanly as similar design would in a C++ application, and the compiler sometimes produces suboptimal code for computation-intensive bits, which I presume is driven mainly by imposition of the VB error-handling model. (There are some specific constructs that VB generates particularly poor code for, in particular I think GoSub/Return, but that's not something that's going to affect the average programmer.) --Mr Wednesday 22:16, 12 October 2007 (UTC)
[edit] derivitive languages, vbscript
"executed by the Windows Script Host as opposed to the VB runtime" No, vbscript is HOSTED by the Windows Script Host, like VBA is hosted by Excel or Word. 150.101.166.15 (talk) 03:22, 19 November 2007 (UTC)
[edit] Fair use rationale for Image:VBDOS-icon.PNG
Image:VBDOS-icon.PNG is being used on this article. I notice the image page specifies that the image is being used under fair use but there is no explanation or rationale as to why its use in this Wikipedia article constitutes fair use. In addition to the boilerplate fair use template, you must also write out on the image description page a specific explanation or rationale for why using this image in each article is consistent with fair use.
Please go to the image description page and edit it to include a fair use rationale. Using one of the templates at Wikipedia:Fair use rationale guideline is an easy way to insure that your image is in compliance with Wikipedia policy, but remember that you must complete the template. Do not simply insert a blank template on an image page.
If there is other fair use media, consider checking that you have specified the fair use rationale on the other images used on this page. Note that any fair use images lacking such an explanation can be deleted one week after being tagged, as described on criteria for speedy deletion. If you have any questions please ask them at the Media copyright questions page. Thank you.
BetacommandBot (talk) 07:02, 21 January 2008 (UTC)
[edit] what is provider in vb?
what is provider in vb? —Preceding unsigned comment added by 124.106.167.10 (talk) 09:16, 27 January 2008 (UTC)
[edit] Beginner classes
This article should not include tutorial examples. A wiki-books project, perhaps, but not here Christopher G Lewis (talk) 23:51, 12 February 2008 (UTC)
[edit] Sample Code
I feel that having too many samples distracts from this article. The recent addition by MTS15 and TetraUK don't add additional information to the article and are just link trolling. If these members wish to contribute samples, they should do so in the WikiBooks. To accomodate this, I've added a reference to the WikiBooks on VB in the Sample Code section.
BTW - Is there a simple set of code samples that could be included in every Computer Language article?
Something like:
- Hello World
- Reading/Writing a Text File
- etc
Christopher G Lewis (talk) 19:39, 13 February 2008 (UTC)
- I would say Hello World would definitely be one, also reading/writing a text file would be good. Probably the other couple samples for all languages are Basic Input and Output. In the case of VB this would be either input box and message box calls or text box and labels as these are the main input and output methods.if we decide what would be a few good samples I'd be willing to supply the source for them.
- Mjwest10 (talk) 23:17, 13 February 2008 (UTC)
[edit] Link Spam
In an attempt to combat link spam, I've added the substituted template {{subst:NoMoreLinks}} to the external links section as per Wikipedia:Spam#Tagging_articles_prone_to_spam Christopher G Lewis (talk) 21:03, 15 February 2008 (UTC)
- Thanks Christopher, What exactly does that mean? How did you add it? and how do you decide where to add it? I am trying to learn more about all of this and I am trying to work hard at keeping a few pages clean and up to date. This one and a local Montana one. Any light you can shed on what your doing would help me a lot. If you have any articles or help sections you recommend I would greatly appreciate it.
- Thanks, Mjwest10 (talk) 06:05, 16 February 2008 (UTC)
- Not really sure where I found it - I'm relatively new at this. Basically have spent two weeks removing crap links like this and am just starting to read the Wikipedia: pages. I just hope it helps :-) —Preceding unsigned comment added by Christopher G Lewis (talk • contribs) 08:44, 16 February 2008 (UTC)
[edit] GUI Development in Visual Basic 6
THis section doesn't make much sense in the article. I propose we delete it. Christopher G Lewis (talk) 21:49, 18 March 2008 (UTC)
- I would concur. Either we fix it up to not have POV and be more in depth or the section should simply be deleted.Mjwest10 (talk) 19:19, 19 March 2008 (UTC)
[edit] basic
bagaimana cara membuat virus dengan vb (visual basic) dengan kemampuan lebih tinggi —Preceding unsigned comment added by 125.162.80.67 (talk) 14:26, 4 April 2008 (UTC)
[edit] Extended support has ended & runtime libraries
The first part of the article should be altered. I cannot remember where I found it, but Microsoft ended extended support for VB 6 in February, 2008.
Also, the runtime libraries for VB 6 are not included by default in Windows Vista.
I have made both of these changes to the article.
Evils Dark (talk) 04:31, 1 May 2008 (UTC)
[edit] Deleted paragraph
Stating that Visual Basic 'competes' with other languages (such as C++, Java, C#...) in 'business programming 'does not make sense in the introduction of the article. Moreover, its reference is clearly wrong/outdated: Nowadays, the only VB-like language competing with some importance is VB.NET, which is enterely unrelated to VB 6.0 and earlier versions.
By far, C# and Java (just for example) have much more importance in 'business programming' than old Visual Basic. In general programming, Visual Basic 6.0 has nothing to do. —Preceding unsigned comment added by 212.183.248.25 (talk) 14:55, 1 May 2008 (UTC)
[edit] support
This article is all over the place as regards the termination of support. February 2008 is wrong, but it also mentions March 2008, which is also wrong.
The standard support ended in March 2005 and the extended support ended in April 2008. —Preceding unsigned comment added by 80.201.168.132 (talk) 10:45, 4 May 2008 (UTC)
[edit] Remove Citations Needed Header
I added a source to verify the only "citation needed" area of the page a few weeks ago (I may not have been signed in). As there are now no "citation needed" statements in the document, should we remove the "improve this article" header? SoxSexSax (talk) 17:11, 16 May 2008 (UTC)
[edit] Versions
Hasn't more versions of VB come out already? I mean... the Visual Basics.Net are more upgraded than VB6, and I dont think it is even the most updated version. Maybe parts of this article need to be completely re-written. Drydom Any thoughts? 02:08, 25 May 2008 (UTC)
- There's a completely different product called Visual Basic .NET, but VB6 is the last version of the original Visual Basic. They are not the same product. This has come up a number of times if you read through the preceding comments. —Geoff Riley (talk) 09:29, 25 May 2008 (UTC)
[edit] Finding Prime numbers example
This is of relatively little importance, but I thought I'd mention it. The prime number example checks divisors up to half the number being checked. This is overkill. It should check up to the square root of the number being checked; this is typically a much smaller number and is sufficient to determine primality. For example, to check 100 for primality, it is sufficient to check for divisors up to sqrt(100)=10, as opposed to 100/2=50. An intuitive reason for this; the operation "/2" gives the "additive" half-way point of a number, but "sqrt" operation gives the "multiplicative" half-way point, and this calculation is more relevant to primality. If there were a divisor above ten (e.g. 20), it's counterpart would be below 10 (e.g. 5). Therefore checking to 10 instead of 50 would be sufficient and more efficient. Thanks for a great wiki though, reads well. Cheers! —Preceding unsigned comment added by 70.103.202.190 (talk) 19:29, 30 May 2008 (UTC)