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

Visual Basic

 
GeneralRe: Turning a functional (not object-oriented) program into a .dll Pin
Eric Burns28-May-08 9:36
Eric Burns28-May-08 9:36 
Questionhow to apply style for anchor tag by using vb.net? Pin
subbu.sk28-May-08 3:24
subbu.sk28-May-08 3:24 
QuestionWhat is the difference between VB and VB.NET? Pin
Sarfraz Munna28-May-08 2:16
Sarfraz Munna28-May-08 2:16 
AnswerRe: What is the difference between VB and VB.NET? Pin
Vasudevan Deepak Kumar28-May-08 2:45
Vasudevan Deepak Kumar28-May-08 2:45 
AnswerRe: What is the difference between VB and VB.NET? Pin
Ashfield28-May-08 5:04
Ashfield28-May-08 5:04 
AnswerRe: What is the difference between VB and VB.NET? Pin
Christian Graus28-May-08 13:57
protectorChristian Graus28-May-08 13:57 
GeneralRe: What is the difference between VB and VB.NET? Pin
Herl the Pearl29-May-08 10:12
Herl the Pearl29-May-08 10:12 
AnswerRe: What is the difference between VB and VB.NET? Pin
supercat928-May-08 15:15
supercat928-May-08 15:15 
Munna Sarfraz Ahmad wrote:
But objects are still passed by reference.


Not quite.

Consider the following:
public sub sub1(byref x as collection)
  x.add(45)
  x=new collection
  x.add(23)
end sub

public sub sub2(byval x as collection)
  x.add(45)
  x=new collection
  x.add(23)
end sub

If 'x' is a collection, and I perform sub1(x), then x will now point to a new collection containing the value 23. If a reference to the old collection exists anywhere, the collection pointed to by that reference will now have contain the value 45. If x was the only reference to that collection, it will go bye-bye.

In the second scenario, when I perform sub2(x), then the collection pointed to by 'x' will have whatever it had in it before, along with 45. A new collection will be created and have 23 put into it, but that collection will go bye-bye sometime after the function exits.
GeneralRe: What is the difference between VB and VB.NET? Pin
Kevin Brydon28-May-08 22:44
Kevin Brydon28-May-08 22:44 
AnswerRe: What is the difference between VB and VB.NET? Pin
Guffa29-May-08 6:48
Guffa29-May-08 6:48 
QuestionCombobox with multiple selection Pin
camarate28-May-08 1:59
camarate28-May-08 1:59 
AnswerRe: Combobox with multiple selection Pin
Kevin Brydon28-May-08 2:35
Kevin Brydon28-May-08 2:35 
GeneralRe: Combobox with multiple selection Pin
camarate28-May-08 2:55
camarate28-May-08 2:55 
GeneralRe: Combobox with multiple selection Pin
Steven J Jowett28-May-08 5:59
Steven J Jowett28-May-08 5:59 
GeneralRe: Combobox with multiple selection Pin
camarate28-May-08 6:27
camarate28-May-08 6:27 
QuestionDynamically creating controls with TableLayoutPanel Contrrols Pin
pavya_Cool28-May-08 1:34
pavya_Cool28-May-08 1:34 
AnswerRe: Dynamically creating controls with TableLayoutPanel Contrrols Pin
Mycroft Holmes28-May-08 15:55
professionalMycroft Holmes28-May-08 15:55 
QuestionVS 2005 references Pin
Mohammad Al Hoss28-May-08 0:38
Mohammad Al Hoss28-May-08 0:38 
AnswerRe: VS 2005 references Pin
Thomas Stockwell30-May-08 10:56
professionalThomas Stockwell30-May-08 10:56 
QuestionHow to get file size from website Pin
Kumaran21cen28-May-08 0:18
Kumaran21cen28-May-08 0:18 
AnswerRe: How to get file size from website Pin
dan!sh 28-May-08 0:54
professional dan!sh 28-May-08 0:54 
QuestionSetup Wizard Pin
cm pandian27-May-08 22:48
cm pandian27-May-08 22:48 
QuestionRead MySQL TinyText column from VB.NET [modified] Pin
drexler_kk27-May-08 20:15
drexler_kk27-May-08 20:15 
AnswerRe: Read MySQL TinyText column from VB.NET Pin
jzonthemtn28-May-08 2:00
jzonthemtn28-May-08 2:00 
GeneralRe: Read MySQL TinyText column from VB.NET Pin
drexler_kk28-May-08 13:02
drexler_kk28-May-08 13:02 

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.