Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax for passing array causes compile error
Message
From
30/06/1999 09:53:32
 
 
To
29/06/1999 18:05:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00235565
Message ID:
00235866
Views:
20
>
>I don't understand how I'm recieving the entire array without the @, and having UDFPARMS set to VALUE, but it works. The problem is, whenever I compile my .exe I get the following error:
>

From the Hackers Guide to 6.0... Highly recomended:

Parameters to a procedure are passed by reference, except in three cases. The first is if the actual parameter is an expression rather than a variable or field. The second is if you put parentheses around the actual parameter (which, in effect, turns the item into an expression). Finally, properties are always passed by value rather than by reference. When variables are passed by reference, they must exist before the DO. See "Xbase Xplained" for more on parameter passing.

UDFPARMS is only when you call something as a function...

MyProgram( UDFPARM )

as opposed to you calling it as a procedure:

Do MyProgram with ProcParm

BOb
Previous
Reply
Map
View

Click here to load this message in the networking platform