VB.net - Execute code after reurn statement?

Discussion in 'ASP .Net' started by marktm@gmail.com, May 16, 2006.

  1. Guest

    Would "someSubProcedure" execute in the following example?
    Or is the rest of the function ignored once the Return statement is
    hit?

    Thanks


    Fucntion doSomething() As String
    Dim strTemp As Sting = "A"
    Return strTemp
    someSubProcedure()
    End Function
     
    , May 16, 2006
    #1
    1. Advertising

  2. No it will NOT execute

    --
    Swanand Mokashi
    Microsoft Certified Solution Developer (.NET) - Early Achiever
    Microsoft Certified Application Developer (.NET)

    http://www.dotnetgenerics.com/
    DotNetGenerics.com -- anything and everything about Microsoft .NET
    technology ...

    http://www.swanandmokashi.com/
    http://www.swanandmokashi.com/HomePage/WebServices/
    Home of the Stock Quotes, Quote of the day and Horoscope web services


    <> wrote in message
    news:...
    > Would "someSubProcedure" execute in the following example?
    > Or is the rest of the function ignored once the Return statement is
    > hit?
    >
    > Thanks
    >
    >
    > Fucntion doSomething() As String
    > Dim strTemp As Sting = "A"
    > Return strTemp
    > someSubProcedure()
    > End Function
    >
     
    Swanand Mokashi, May 16, 2006
    #2
    1. Advertising

  3. Guest

    Thanks Swanand. Just needed to confirm.
    -m
     
    , May 16, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    389
  2. Markus Franz
    Replies:
    2
    Views:
    274
    Terry Reedy
    Dec 24, 2004
  3. Markus Franz
    Replies:
    2
    Views:
    354
    Denis S. Otkidach
    Dec 28, 2004
  4. Replies:
    21
    Views:
    1,060
    Giannis Papadopoulos
    Aug 2, 2005
  5. Replies:
    3
    Views:
    543
    Patrik
    Jan 29, 2009
Loading...

Share This Page