+ Reply to Thread
Results 1 to 2 of 2

Return value from a function

  1. #1
    Registered User
    Join Date
    02-12-2006
    Posts
    54

    Return value from a function

    Hello

    I have the followig function

    Function GetTheName() as string

    Please Login or Register  to view this content.

    How do I return this "MyName" here now then exit the function to go back to the calling procedure? I tried the "Return MyName" statement but it gave me a syntax error, however I tried "GetTheName = MyName" and it worked but is this going to flush the memory of this function from memory and exit the function and go back to the calling procedure?

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by cgi_pro
    Hello

    I have the followig function

    Function GetTheName() as string

    Please Login or Register  to view this content.

    How do I return this "MyName" here now then exit the function to go back to the calling procedure? I tried the "Return MyName" statement but it gave me a syntax error, however I tried "GetTheName = MyName" and it worked but is this going to flush the memory of this function from memory and exit the function and go back to the calling procedure?
    MyName = result.of.calculation

    example
    Please Login or Register  to view this content.
    hth
    ---
    Last edited by Bryan Hessey; 11-19-2006 at 06:30 AM.
    Si fractum non sit, noli id reficere.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1