Click here to Skip to main content
15,890,506 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Set Default Download Manager ? Pin
Dave Kreskowiak16-Oct-07 1:11
mveDave Kreskowiak16-Oct-07 1:11 
GeneralRe: Set Default Download Manager ? Pin
Dan Suthar16-Oct-07 5:55
professionalDan Suthar16-Oct-07 5:55 
QuestionDarkness windows when change the opacity value Pin
haggenx15-Oct-07 6:09
haggenx15-Oct-07 6:09 
AnswerRe: Darkness windows when change the opacity value Pin
Dan Suthar15-Oct-07 6:37
professionalDan Suthar15-Oct-07 6:37 
GeneralRe: Darkness windows when change the opacity value Pin
haggenx16-Oct-07 8:10
haggenx16-Oct-07 8:10 
GeneralRe: Darkness windows when change the opacity value Pin
Dan Suthar16-Oct-07 14:50
professionalDan Suthar16-Oct-07 14:50 
GeneralRe: Darkness windows when change the opacity value Pin
haggenx23-Oct-07 4:47
haggenx23-Oct-07 4:47 
QuestionByRef the ByVal way ?? Pin
barney_197215-Oct-07 4:04
barney_197215-Oct-07 4:04 
I have an XmlDocument (System.Xml) that i want to add to and do various other stuff but i want to split the routines down. I've read that ByVal is 'safer' to use and possibly quicker than byref so i am proposing to layout my functions as below...

Imports System.Xml

'Declaration
Dim XmlDocObject as New XmlDocument

XmnlDocObject = InitialiseXml(XmlDocObject)

Private Function InitialiseXml(ByVal v_XmlDocObject as XmlDocument) as XmlDocument

'Temp object
Dim TempXmlObject = v_xmlDocObject

'Do something with temp object......

'Return object now processing is finished
Return TempXmlObject

'Destroy temp object
TempXmlObject = Nothing

End Function

What i would like to know is if the above is good / bad practice?
Anything thing wrong with this way?
Is this the preferred way as opposed to using Byref or am i creating extra objects which will
lie around in memory (until GC see fit to get rid)?

Regards


AnswerRe: ByRef the ByVal way ?? Pin
Dave Kreskowiak15-Oct-07 6:14
mveDave Kreskowiak15-Oct-07 6:14 
GeneralRe: ByRef the ByVal way ?? Pin
barney_197215-Oct-07 21:09
barney_197215-Oct-07 21:09 
QuestionHow do I merge 2 WAV files ? Pin
comtrendz15-Oct-07 3:03
comtrendz15-Oct-07 3:03 
AnswerRe: How do I merge 2 WAV files ? Pin
Guffa15-Oct-07 3:30
Guffa15-Oct-07 3:30 
GeneralRe: How do I merge 2 WAV files ? Pin
lmoelleb15-Oct-07 5:41
lmoelleb15-Oct-07 5:41 
AnswerRe: How do I merge 2 WAV files ? Pin
Benny_Lava16-Oct-07 1:14
Benny_Lava16-Oct-07 1:14 
QuestionCopy files from one folder to another Pin
VB.Net Developer15-Oct-07 2:57
VB.Net Developer15-Oct-07 2:57 
AnswerRe: Copy files from one folder to another Pin
Tamimi - Code15-Oct-07 3:33
Tamimi - Code15-Oct-07 3:33 
AnswerRe: Copy files from one folder to another Pin
Eric Georgiades15-Oct-07 3:36
Eric Georgiades15-Oct-07 3:36 
GeneralRe: Copy files from one folder to another Pin
VB.Net Developer15-Oct-07 3:40
VB.Net Developer15-Oct-07 3:40 
GeneralRe: Copy files from one folder to another Pin
Eric Georgiades15-Oct-07 3:50
Eric Georgiades15-Oct-07 3:50 
GeneralRe: Copy files from one folder to another Pin
VB.Net Developer15-Oct-07 3:53
VB.Net Developer15-Oct-07 3:53 
AnswerRe: Copy files from one folder to another Pin
Abhijit Jana15-Oct-07 4:25
professionalAbhijit Jana15-Oct-07 4:25 
GeneralRe: Copy files from one folder to another Pin
VB.Net Developer16-Oct-07 1:42
VB.Net Developer16-Oct-07 1:42 
QuestionDownload Attachment from Email using VB,NET [modified] Pin
VB.Net Developer15-Oct-07 2:56
VB.Net Developer15-Oct-07 2:56 
AnswerRe: Download Attachment from Email using VB,NET Pin
DigiOz Multimedia15-Oct-07 10:12
DigiOz Multimedia15-Oct-07 10:12 
QuestionWeird memory problem Pin
Skippy II15-Oct-07 2:47
Skippy II15-Oct-07 2:47 

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.