• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Whenever you search in PBworks or on the Web, Dokkio Sidebar (from the makers of PBworks) will run the same search in your Drive, Dropbox, OneDrive, Gmail, Slack, and browsed web pages. Now you can find what you're looking for wherever it lives. Try Dokkio Sidebar for free.



Page history last edited by Corey Alix 14 years, 4 months ago

VB.NET Code Convention

ByVal parameters are prefixed with "pi" for "Parameter Input".

ByRef parameters are prefixed with "po" for "Parameter Output".

Local variables are prefixed with "lv" for "Local Variable".

Member variables are prefixed with "m_".

The return variable is always called lvResult.

Every Catch makes a call to ReportError so no exception gets lost.



Function TryAdd(ByRef poX As Int32, ByVal piY As Int32) As Boolean

     Dim lvResult = True


          poX += piY;

     Catch ex As Exception


          lvResult = False

     End Try

     Return lvResult

End Function

Comments (0)

You don't have permission to comment on this page.