Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning an Array from a Function
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00338850
Message ID:
00339175
Views:
30
>You also cannot use the @ within a return, and can't pass something created as LOCAL or PRIVATE up the chain; only PUBLICs can be seen above the level at whichthey are created.

Not sure that I'm reading this correctly, but just to be clear: You *can* return a value created as LOCAL or PRIVATE.

For example:

function DivideByTwo
lparameter lSomeValue
local lReturnVal
lReturnVal = lSomeValue / 2
return lReturnVal


Take care,
Joe
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform