Results 1 to 2 of 2

Thread: [2005] Referencing to code

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2006
    Posts
    18

    [2005] Referencing to code

    If i write some code that i want to use again, is there a function or something that will use the code that i have already written without me having to type it again?

    technohamster

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Referencing to code

    When you use classes and call properties and methods that's exactly what you're doing: re-using code that was written once over and over again. If you write a method, i.e. procedure or function, then you can call it over and over again without having to write its contents out again. You can also create Class Library projects that contain multiple classes, all full of properties and methods that you can use over and over again. That's exactly what the .NET Framework is (amongst other things): a collection of class libraries.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width