Click here to Skip to main content
15,887,214 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Byref or Byval : which is faster and consume less memory Pin
Dave Kreskowiak22-Jan-15 17:06
mveDave Kreskowiak22-Jan-15 17:06 
GeneralRe: Byref or Byval : which is faster and consume less memory Pin
ZurdoDev22-Jan-15 11:18
professionalZurdoDev22-Jan-15 11:18 
GeneralRe: Byref or Byval : which is faster and consume less memory Pin
PIEBALDconsult22-Jan-15 11:21
mvePIEBALDconsult22-Jan-15 11:21 
GeneralRe: Byref or Byval : which is faster and consume less memory Pin
dilkonika22-Jan-15 11:23
dilkonika22-Jan-15 11:23 
GeneralRe: Byref or Byval : which is faster and consume less memory Pin
PIEBALDconsult22-Jan-15 11:41
mvePIEBALDconsult22-Jan-15 11:41 
AnswerRe: Byref or Byval : which is faster and consume less memory Pin
ZurdoDev22-Jan-15 13:36
professionalZurdoDev22-Jan-15 13:36 
GeneralRe: Byref or Byval : which is faster and consume less memory Pin
dbitsch22-Jan-15 15:34
dbitsch22-Jan-15 15:34 
GeneralRe: Byref or Byval : which is faster and consume less memory Pin
ZurdoDev22-Jan-15 16:00
professionalZurdoDev22-Jan-15 16:00 
dbitsch wrote:
Pieb is right in that one should use Byval most of the time and only use Byref sparingly,
I rarely use ByRef but never heard anyone say it should almost never be used.

dbitsch wrote:
because if, in the called subroutine, you change the value of the passed variable, what you are actually doing is changing the value in the original variable that you made your call with.
Yes, that IS the definition of ByRef and the reason you would use it.

I had a case years ago where I was passing an object byval, which is the default, to a function that was called repeatedly thousands of times. It turns out ByRef worked much better.
There are only 10 types of people in the world, those who understand binary and those who don't.

GeneralRe: Byref or Byval : which is faster and consume less memory Pin
Dave Kreskowiak22-Jan-15 17:09
mveDave Kreskowiak22-Jan-15 17:09 
GeneralRe: Byref or Byval : which is faster and consume less memory Pin
Dave Kreskowiak22-Jan-15 17:07
mveDave Kreskowiak22-Jan-15 17:07 
QuestionHow to create relationship of 2 tables using OleDbConnection Pin
gwittlock17-Jan-15 11:36
gwittlock17-Jan-15 11:36 
AnswerRe: How to create relationship of 2 tables using OleDbConnection Pin
PIEBALDconsult17-Jan-15 12:02
mvePIEBALDconsult17-Jan-15 12:02 
GeneralRe: How to create relationship of 2 tables using OleDbConnection Pin
gwittlock17-Jan-15 12:12
gwittlock17-Jan-15 12:12 
AnswerRe: How to create relationship of 2 tables using OleDbConnection Pin
gwittlock17-Jan-15 22:45
gwittlock17-Jan-15 22:45 
GeneralRe: How to create relationship of 2 tables using OleDbConnection Pin
AccessDeveloper29-Jan-15 7:01
AccessDeveloper29-Jan-15 7:01 
QuestionClick on "connect" button, the progressbar is filled, a label appears writing if it is connected to the support or not Pin
Member 1138076216-Jan-15 10:12
Member 1138076216-Jan-15 10:12 
AnswerRe: Click on "connect" button, the progressbar is filled, a label appears writing if it is connected to the support or not Pin
Eddy Vluggen16-Jan-15 13:15
professionalEddy Vluggen16-Jan-15 13:15 
AnswerRe: Click on "connect" button, the progressbar is filled, a label appears writing if it is connected to the support or not Pin
Richard MacCutchan16-Jan-15 22:49
mveRichard MacCutchan16-Jan-15 22:49 
QuestionList containing custom controls Pin
Bart Van Eyndhoven15-Jan-15 23:10
Bart Van Eyndhoven15-Jan-15 23:10 
AnswerRe: List containing custom controls Pin
Richard Andrew x6416-Jan-15 5:57
professionalRichard Andrew x6416-Jan-15 5:57 
AnswerRe: List containing custom controls Pin
Eddy Vluggen16-Jan-15 7:38
professionalEddy Vluggen16-Jan-15 7:38 
QuestionSNMP Coding for VB 2013 Pin
RudyL15-Jan-15 11:11
RudyL15-Jan-15 11:11 
AnswerRe: SNMP Coding for VB 2013 Pin
Richard MacCutchan15-Jan-15 21:40
mveRichard MacCutchan15-Jan-15 21:40 
AnswerRe: SNMP Coding for VB 2013 Pin
Eddy Vluggen16-Jan-15 7:44
professionalEddy Vluggen16-Jan-15 7:44 
QuestionRight Mouse Click in TextBox brings up strange menu Pin
KKW_acd15-Jan-15 5:51
KKW_acd15-Jan-15 5:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.