Results 1 to 5 of 5

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

  1. #1
    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.

  2. #2
    Join Date
    Apr 2008
    Posts
    2,005

    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. #3
    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?

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    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.
    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 ...

  5. #5
    Join Date
    Apr 2008
    Posts
    1,948

    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

Similar Threads

  1. Replies: 6
    Last Post: 09-04-2012, 12:04 PM
  2. Replies: 1
    Last Post: 27-11-2011, 04:54 AM
  3. Replies: 1
    Last Post: 08-10-2011, 04:28 PM
  4. How to call a function in the "main" function
    By MaryJ in forum Software Development
    Replies: 1
    Last Post: 19-11-2010, 01:40 AM
  5. Replies: 6
    Last Post: 18-05-2010, 12:27 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,416,908.87063 seconds with 16 queries