|
| |||||||||
| Tags: function, library, procedure, vb 2008, vbnet, visual basic |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| 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. |
|
#2
| ||||
| ||||
| 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 |
|
#3
| |||
| |||
| 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? |
|
#4
| ||||
| ||||
| 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:
|
|
#5
| ||||
| ||||
| 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 |
![]() |
|
| Thread Tools | Search this Thread |
| |
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 |