Mike Yearwood
Toronto, Ontario, Canada
General information
Category:
Coding, syntax & commands
Environment versions
Network:
Windows Server 2012
Virtual environment:
VMWare
>HI all,
>
>Trivial question: I have seen and used both of these at the end of procedures to return a value:
>
>(where lnReturn is a var)
>
>RETURN lnReturn
>
>RETURN ( lnReturn )
>
>Is there any real difference? Or when would the one with parenthesis be required?
>
>Albert
Some commands use name expressions when a name is required.
x=3
y=5
return (x * y) does the same as return x*y.
lcReturn = "x * y"
return (lcReturn) does not evaluate the expression.
What does make a difference is RETURN m.lcReturn. It's funny someone would add parentheses for no reason, but not use m. when there is a reason.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only