Showing posts with label VB. Show all posts
Showing posts with label VB. Show all posts

Friday, May 1, 2009

Best 20 Visual Basic Tutorial

Dibawah ini merupakan 20 kumpulan situs visual basic terbaik yang bisa jadi acuan bagi yang ingin lebih mendalami visual basic. 

A1VBCode - VB Source Code Site: Provides hundreds free Visual Basic source code snippets and applications in all categories. Submit your own code and win monthly VB prizes.


VB Wire: A Visual Basic news source. This site provides Visual Basic news which is updated daily. The site also provides a weekly VB newsletter which is delivered to your inbox with all of the past weeks VB news.

AppDev Training: Developer Training for Visual Basic, ASP, XML, SQL Server, VBA, Microsoft Access, Visual InterDev, and FoxPro through CD’s, videos, classes and licensing.

ITtoolbox Portal for Visual Basic: Content, community, and service for Visual Basic professionals. Providing technical discussion, job postings, an integrated directory, news, and much more.

VB Chat: A place where you can go and chat live about Visual Basic with other Visual Basic programmers around the world.

Just VB Jobs: This is an excellent new job site. It contains a huge database of nothing but VB jobs. It also contains numerous other VB resources which you'll find very helpful.

VBShop - The Visual Basic Shop: Tools and tips for VB programmers. Optimization, documentation, add-ins.

Programmers Heaven - Where programmers go: The Internet's most complete source of free downloadable programming files, source codes, utilities, Visual Basic, C/C++, JAVA, and other tools for programmers and developers. All files and links are organized in an easy-to-find format.

Visual Basic Jobs: Another excellent VB job site which you can use to search through a huge list of Visual Basic jobs across the U.S.

ProgrammingTutorials.com: Excellent site offering programming tutorials in many categories.

VB Code: This very popular site contains many VB code samples and snippets which you can search through.

VB Web Directory: Contains a huge index of Visual Basic Resources. Contains links, books, VB forums, job bank, and much more.

CodeGuru: An information resource for Visual Basic programmers. Contains information on all aspects of Visual Basic.

VB Accelerator: An excellent general Visual Basic site providing up to date VB news, tips, and many source code samples.

Visual Basic Expert: This site is for serious VB developers, huge amounts of professional code for download, help forum, developer resources, book reviews, online training and more..

Developers Domain: This site contains free code downloads, message boards, links, and much more.

Visual Basic Bookmark: A comprehensive directory of programming resources and development information for Visual Basic programmers, Database developers & web designers.

CodeArchive.com- The Source Code Site: The largest amount of Visual Basic source code on the Internet. Other features include a chat room and message board. You can get 50 MB for your own web site on CodeArchive.com .

Planet Source Code: Contains thousands of lines of source code which you can copy and paste directly into your own applications. Some of the code is in downloadable zip files. 

VB Web - The online guide to VB- Over 120 downloads, and Tutorials on Commands, Controls, Windows API, Subclassing, Debugging and more. We also have Links, a Free Newsletter and Book Reviews. Fully Searchable.



Dari semua yang terbaik diatas menurut saya yang paling terbaik adalah planet-source-code.com 

Source by: http://www.visualbasicbooks.com, http://oom-vb.blogspot.com/2007/08/20-situs-visual-basic-terbaik.html

Tuesday, April 14, 2009

Avoiding Naming Conflicts

Avoiding Naming Conflicts

A naming conflict occurs when you try to create or use an identifier that was previously defined. In some cases, naming conflicts generate errors such as "Ambiguous name detected" or "Duplicate declaration in current scope". Naming conflicts that go undetected can result in bugs in your code that produce erroneous results, especially if you do not explicitly declare all variables before first use.

You can avoid most naming conflicts by understanding the scoping characteristics of identifiers for data, objects, and procedures. Visual Basic has three scoping levels: procedure-level, private module-level, and public module-level.

A naming conflict can occur when an identifier:

  • Is visible at more than one scoping level.

  • Has two different meanings at the same level.

For example, procedures in separate modules can have the same name. Therefore, you can define a procedure named MySub in modules named Mod1 and Mod2. No conflicts occur if each procedure is called only from other procedures in its own module. However, an error can occur if MySub is called from a third module, and no qualification is provided to distinguish between the two MySub procedures.

Most naming conflicts can be resolved by preceding each identifier with a qualifier that consists of the module name and, if necessary, a project name. For example:

YourProject.YourModule.YourSub MyProject.MyModule.MyVar 

The preceding code calls the Sub procedure YourSub and passes MyVar as an argument. You can use any combination of qualifiers to differentiate identical identifiers.

Visual Basic matches each reference to an identifier with the "closest" declaration of a matching identifier. For example, if MyID is declared Public in two modules in a project (Mod1 and Mod2), you can specify the MyID declared in Mod2 without qualification from within Mod2, but you must qualify it as Mod2.MyID to specify it in Mod1. This is also true if Mod2 is in a different but directly referenced project. However, if Mod2 is in an indirectly referenced project, that is, a project referenced by the project you directly reference, references to the Mod2 variable named MyID must always be qualified with the project name. If you reference MyID from a third, directly referenced module, the match is made with the first declaration encountered by searching:

  • Directly referenced projects, in the order that they appear in the References dialog box of the Tools menu.

  • The modules of each project. Note that there is no inherent order to the modules in the project.

You can't reuse names of host-application objects, for example, R1C1 in Microsoft Excel, at different scoping levels.

Tip Typical errors caused by naming conflicts include ambiguous names, duplicate declarations, undeclared identifiers, and procedures that are not found. By beginning each module with an Option Explicit statement to force explicit declarations of variables before they are used, you can avoid some potential naming conflicts and identifier-related bugs.