Wrox Programmer Forums
|
Visual Basic 2005 Basics If you are new to Visual Basic programming with version 2005, this is the place to start your questions. For questions about the book: Beginning Visual Basic 2005 by Thearon Willis and Bryan Newsome, ISBN: 0-7645-7401-9 please, use this forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2005 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 2nd, 2009, 02:17 AM
Registered User
 
Join Date: Mar 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default What is Namespace

I have started working on Visual Basic 2005. I am new to it. Please help me, first to know,
what is "namespace".
 
Old March 2nd, 2009, 07:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

Hi.. google is your best friend. http://msdn.microsoft.com/en-us/library/ms973231.aspx.
If you have any doubt ask again.
__________________
HTH

Gonzalo


================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the
proof.
================================================== =========
 
Old August 11th, 2009, 02:47 AM
Authorized User
 
Join Date: Aug 2009
Posts: 18
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Namespaces are used for organizing structure of your program code. Beside Namespaces, in new dev tools you can use #region as well.

Example:

Namespace program_function

Class something
...

End Namespace

This namespace contains some function(s), class(es), etc, you will use. When you need something from it, you just call it with "Imports" procedure:

Imports something 'call of class something

Or use general line of code:

Imports program_function

and after, use all functions, classes or variables as they are declared in main part of program.

When you open VB.NET or C#, there is line of code that says: Imports System. That is call of namespace System.

Last edited by Lupus81; August 11th, 2009 at 02:49 AM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Namespace help CamosunStudent BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 October 6th, 2006 04:12 PM
Namespace CamosunStudent ASP.NET 2.0 Basics 0 October 4th, 2006 06:57 PM
namespace FT BOOK: ASP.NET Website Programming Problem-Design-Solution 3 December 4th, 2005 10:52 PM
Where Is NameSpace? reidcor BOOK: ASP.NET Website Programming Problem-Design-Solution 1 March 23rd, 2004 03:41 PM
namespace Ibn_Aziz C# 2 December 25th, 2003 05:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.