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. Advertisements

  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. Advertisements

  3. Guest

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

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:
    458
  2. Markus Franz
    Replies:
    2
    Views:
    396
    Terry Reedy
    Dec 24, 2004
  3. Markus Franz
    Replies:
    2
    Views:
    476
    Denis S. Otkidach
    Dec 28, 2004
  4. Lav KG
    Replies:
    0
    Views:
    362
    Lav KG
    Jan 11, 2007
  5. Replies:
    21
    Views:
    1,381
    Giannis Papadopoulos
    Aug 2, 2005
  6. stef
    Replies:
    2
    Views:
    278
  7. Replies:
    3
    Views:
    701
    Patrik
    Jan 29, 2009
  8. Virgil Stokes
    Replies:
    1
    Views:
    266
    Steven D'Aprano
    Sep 22, 2011
Loading...