Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RETURN does arrays!
Message
From
19/10/2001 17:35:33
 
 
To
19/10/2001 16:04:55
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00570900
Message ID:
00571179
Views:
34
>I see. Was the example just done the way it is to confuse, or is there a purpose for doing so that I am missing? On reading more carefully I see that the in/out arrays are different, but why the "@" in both cases?

Because it's required in both places. When you pass an array as parameter, you have to pass by reference or only the first element is passed. To return an array from a function or method, you put the "@" in front of it - that's the syntax.

Sorry that the example was confusing. I was trying to show a real example of something you might do and returning both the row and column subscripts of an array element seemed like a good example.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform