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

Visual Basic

 
GeneralRe: Setting properties using variables Pin
Steven Campbell1-Sep-04 16:41
Steven Campbell1-Sep-04 16:41 
GeneralRe: Setting properties using variables Pin
Dave Murray2-Sep-04 4:08
Dave Murray2-Sep-04 4:08 
GeneralRe: Setting properties using variables Pin
Dave Kreskowiak2-Sep-04 4:41
mveDave Kreskowiak2-Sep-04 4:41 
Generalwindows explorer Pin
Anonymous1-Sep-04 15:27
Anonymous1-Sep-04 15:27 
GeneralRe: windows explorer Pin
Charlie Williams1-Sep-04 15:46
Charlie Williams1-Sep-04 15:46 
GeneralRe: windows explorer Pin
DMurray1-Sep-04 15:47
DMurray1-Sep-04 15:47 
GeneralUsing ByRef keyword Pin
Chris Quick1-Sep-04 10:06
Chris Quick1-Sep-04 10:06 
GeneralRe: Using ByRef keyword Pin
Dave Kreskowiak1-Sep-04 10:21
mveDave Kreskowiak1-Sep-04 10:21 
ByRef can only be used in Sub and Function parameter passing. If ObjectB is passed to a method in ClassA ByRef, then that method can get to that instance of ObjectB.
Dim b As Integer = 23
ModifySomething(b)
Debug.WriteLine("The value of b is: " & b.ToString())

Private Sub ModifySomething(ByRef someInt As Integer)
    someInt = 99
End Sub

-----8<------------------------------------------------

Output:
The value of b is: 99



RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Using ByRef keyword Pin
Chris Quick1-Sep-04 16:32
Chris Quick1-Sep-04 16:32 
GeneralRe: Using ByRef keyword Pin
Steven Campbell1-Sep-04 16:44
Steven Campbell1-Sep-04 16:44 
GeneralRe: MS MaskEditBox 6.0 Help Me! Pin
Kunal Mukherjee1-Sep-04 8:45
Kunal Mukherjee1-Sep-04 8:45 
GeneralRe: MS MaskEditBox 6.0 Help Me! Pin
Dave Kreskowiak1-Sep-04 10:27
mveDave Kreskowiak1-Sep-04 10:27 
GeneralWorking with classes and data access logic... Pin
Chris Quick1-Sep-04 6:09
Chris Quick1-Sep-04 6:09 
GeneralRe: Working with classes and data access logic... Pin
Steven Campbell1-Sep-04 7:53
Steven Campbell1-Sep-04 7:53 
GeneralRe: Working with classes and data access logic... Pin
Chris Quick2-Sep-04 2:51
Chris Quick2-Sep-04 2:51 
GeneralRe: Working with classes and data access logic... Pin
Steven Campbell2-Sep-04 3:36
Steven Campbell2-Sep-04 3:36 
GeneralQuerying AD for members of a group Pin
Anonymous1-Sep-04 5:34
Anonymous1-Sep-04 5:34 
GeneralRe: Querying AD for members of a group Pin
Anonymous1-Sep-04 19:53
Anonymous1-Sep-04 19:53 
GeneralPrint PDF file Pin
megadith1-Sep-04 5:08
megadith1-Sep-04 5:08 
GeneralRe: Print PDF file Pin
Dave Kreskowiak1-Sep-04 6:17
mveDave Kreskowiak1-Sep-04 6:17 
GeneralDetecting a remote user Pin
dataman91-Sep-04 2:20
dataman91-Sep-04 2:20 
GeneralRe: Detecting a remote user Pin
Dave Kreskowiak1-Sep-04 8:16
mveDave Kreskowiak1-Sep-04 8:16 
GeneralISS... Help :( Pin
Ranoush1-Sep-04 2:08
Ranoush1-Sep-04 2:08 
GeneralRe: ISS... Help :( Pin
Dave Kreskowiak1-Sep-04 6:19
mveDave Kreskowiak1-Sep-04 6:19 
GeneralRe: ISS... Help :( Pin
Ranoush1-Sep-04 11:26
Ranoush1-Sep-04 11:26 

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.