Login or Sign Up to become a member!
LessThanDot Sit Logo

LessThanDot

Desktop Developer

Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.

LTD Social Sitings

Lessthandot twitter Lessthandot Linkedin Lessthandot friendfeed Lessthandot facebook Lessthandot rss

Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.

Your profile

Authors

Search

XML Feeds

Google Ads

« The use of descriptive variable names is forbiddenA great use of Goto »
comments

Using Byref

by chrissie1 on Jul 01, 2009 in categories Microsoft Technologies, VB.NET
Rate Post:
submit to reddit Digg!FacebookDotnetkicks

Still working on the legacy application and seeing this

  1. Module Module1
  2.   Public x as long
  3.  
  4.   Sub mymethod1(Byref x as long)
  5.     x = x + 1
  6.   End Sub
  7.  
  8.   Sub mymethod2()
  9.     mymethod1(x)
  10.   end sub
  11. End Module

Way cool.

About the Author

Christiaan is a forensic technician who programs on the side, although my function description says that I do IT-things for 90% of the time . I'm an avid VB.NET fan and I use lots of the ALT.Net techniques, like unit-testing, nhibernate, logging, IoC, ...
Social SitingsTwitterLinkedInHomePageLTD RSS Feed
249 views
vb.net
submit to reddit Digg!FacebookDotnetkicks

Comments and Feedback

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)