Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trivial question re return value and ()
Message
From
18/05/2016 13:25:58
Tamar Granor (Online)
Tomorrow's Solutions, Llc
Elkins Park, Pennsylvania, United States
 
 
To
18/05/2016 11:12:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8.1
Network:
Windows Server 2012
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Miscellaneous
Thread ID:
01636581
Message ID:
01636591
Views:
94
>can read Foxhelp its well explained (search for "return command")
>or also https://msdn.microsoft.com/en-us/library/512x8ss9%28v=vs.80%29.aspx
>can see all possbilities for return command
>
>lnReturn Specifies the expression returned to the calling program.
>
>return (lnReturn) replaces maybe the old macro "return &lnReturn" .it evaluates the expression returned to the calling programm.
>it can be at the end of a procedure or function or even a modal form..

No, putting the return value in parens doesn't change the value returned in any way. Parens only make a different in places where VFP expects a name and only a name.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform