Returning reference from function

Results 1 to 2 of 2

Thread: Returning reference from function

  1. #1
    Join Date
    Dec 1969

    Default Returning reference from function

    Hi, is it possible to return a pointer or reference from a function?<BR><BR>like can something like this be done? wrong syntax but you get what i mean...<BR><BR>dim temp,temp2<BR>*temp2=xyz<BR><BR>function xyz()<BR>xyz=*temp<BR>end function

  2. #2
    Join Date
    Dec 1969

    Default RE: Returning reference from function

    What are you trying to achieve? Can&#039;t you pass the variable in question by reference into the function in the first place?<BR><BR>I often do this and then use the return value of the function to return a status value (whether the function completed correctly, etc).<BR><BR>Craig.

Posting Permissions

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