Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TYPE a Parameter as Reference
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00730040
Message ID:
00730162
Views:
19
Bret,

The 'AS' clause is used by IntelliSense only and is ignored by VFP compiler. Regardless what type you put there, a function will accept any type of parameter. VFP doesn't distinguish between input and output parameters. You can assign value to any parameter inside function. However calling program would see changes only in the parameters passed by reference.

>I was wondering what you would TYPE a parameter as that is passed by reference into a Method. So if the method expects a string passed by reference to a method that would return an integer. What would be the syntax of the parameter typeing that would identify it as an In/Out Type parameter?
>
>
>  FUNCTION Save( rxMsgSvc AS ?) AS Integer
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform