Coffeehouse Post

Single Post Permalink

View Thread: Visual Basic.Net Reference vs Instantiate
  • User profile image
    kettch

    ,davewill wrote

    @kettch: one minor edit.  Subs don't return values in VB.

    1
    2
    3
    4
    5
    6
    7
    Function GetGuy() as Guy
        DimtempGuy asNew Guy
        tempGuy.Name ="Fred"
        tempGuy.Age = 42
        tempGuy.IsAwesome =True
        return tempGuy
    end function

    Hah! You caught me. I've been working in c# for so long that the context switch defeated me.