Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET 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 December 27th, 2007, 03:39 PM
Registered User
 
Join Date: Dec 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default using module in a project

Hi, I'm just beginning in .net programming

and I would like to know when you place code into a module
and when into a class. I can't find an example of this on the net.

Thanks in advance

 
Old December 27th, 2007, 09:12 PM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

A class is generally associated to a business or functional logic. For example, you can combine all data and functions required for a worker to a class called as 'employee'. This might contain methods like AddEmployee, GetEmployeeDetails, CalculateSuperAnnuation etc. This would help you to create an object of Employee

for example

MyObj = New Employee
MyObj.Name = "OneQuestion"

On the other hand, Modules can be used for generic functions like Filler function, declaring public variables etc


http://www.dotnetdud.blogspot.com

VBA Tips & Tricks (http://www.vbadud.blogspot.com)
 
Old December 28th, 2007, 07:15 AM
Registered User
 
Join Date: Dec 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thx for your reply Shasur,

I understand now.






Similar Threads
Thread Thread Starter Forum Replies Last Post
integrate php module to asp.net 2.0 project?? jigu_2811 ASP.NET 1.0 and 1.1 Professional 2 August 8th, 2011 09:15 AM
new module FT BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 March 15th, 2007 06:06 AM
Website project vs Web Application Project... thenoseknows ASP.NET 2.0 Professional 0 January 14th, 2007 09:47 PM
Module sohrabus ASP.NET 2.0 Professional 1 September 1st, 2006 12:26 AM
Add report of one project into another project tejaswibv Crystal Reports 0 July 13th, 2005 04:40 AM





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