Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , , ,

Sponsored Links



Create "libraries" of function/procedure in vb.net

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 10-12-2009
Member
 
Join Date: Nov 2009
Posts: 43
Create "libraries" of function/procedure in vb.net

I'm getting a lot of code in my project, and I began to have trouble identifying myself and I'd like to consolidate functions/procedures in relation to their action. I wanted to know if it was possible in vb.net to create "libraries" of function/procedure, like in php. I also wanted to know how to implement them in Visual Basic 2008 Express. I try adding a new class, but I had some problem with variables yet said publicly inaccessible in the new class created.
Reply With Quote
  #2  
Old 10-12-2009
kelfro's Avatar
Member
 
Join Date: Apr 2008
Posts: 1,976
Re: Create "libraries" of function/procedure in vb.net

Something which is not bad are the regions that allow you to consolidate some of your code. For example:

Code:
#Region "Name of your region"
   Private Function YourFunction() as Boolean
   End Function
#End Region
Reply With Quote
  #3  
Old 10-12-2009
Member
 
Join Date: Nov 2009
Posts: 43
Re: Create "libraries" of function/procedure in vb.net

Yes I already use this concept of region which is great practice for grouping a set of function and folding/collapse this group very easily. But I know why that is not enough to organize my code. I have 1112 lines of code and I'd like to have a clear organization. History saves time in development and code maintenance. I also wanted to know if there was any way to clone the light of a file in the split screen to see 2 sides of the same file?
Reply With Quote
  #4  
Old 10-12-2009
kelfro's Avatar
Member
 
Join Date: Apr 2008
Posts: 1,976
Re: Create "libraries" of function/procedure in vb.net

1112 lines on it that this is a package of code, functions, etc. For information, on the current project on which I am, my "small" form is 1600 lines I organize my code to have private treatment in a region, treatment events and form controls in another etc.
Quote:
I also wanted to know if there was any way to clone the light of a file in the split screen to see 2 sides of the same file?
Here, I do not know if it is possible to split the screen on your file ...
Reply With Quote
  #5  
Old 10-12-2009
Praetor's Avatar
Member
 
Join Date: Apr 2008
Posts: 1,937
Re: Create "libraries" of function/procedure in vb.net

Use the object-oriented programming with layering:

- A project for SQL functions
- A project for processing trade
- A draft for submission of your application
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Create "libraries" of function/procedure in vb.net"
Thread Thread Starter Forum Replies Last Post
net adaptors stuck at "acquiring network address", 0 s/r packets, remote procedure call server failing Simon818 Windows XP Support 1 27-11-2011 04:54 AM
Prince of Persia The Forgotten Sands Error message "The Procedure entry point .." kmahesh Video Games 1 08-10-2011 05:28 PM
How to call a function in the "main" function MaryJ Software Development 1 19-11-2010 01:40 AM
<input type="button" value="Enregistrer" onclick="location.href=../asp/PRaces.asp"> Luz Software Development 6 18-05-2010 01:27 AM
Help! Vista Cannot create dialup/VPN connections "The wizard cannot create the connection" licensetokill007 Windows Vista Network 14 27-04-2009 03:22 PM


All times are GMT +5.5. The time now is 11:51 AM.