Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Xlsx to xls
Message
From
03/04/2014 10:30:49
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
03/04/2014 10:21:23
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01597868
Message ID:
01597989
Views:
49
Now you must declare that FUNCTION and PROCEDURE is the same in VFP. Or do you see any diffence, except declaration?

>OK, a quick overview of functions and procedures in VFP.
>
>Given this code
>
>FUNCTION DoSomething(param1, param2)
>
>* code that does something
>
>RETURN someValue
>
>
>It looks like a function. It smells like a function, but it may in fact not be a function.
>
>I can call it like this
>
>value1 = 12
>value2 = "Hi there"
>? DoSomething(value1, value2)
>
>
>and it will behave like a function. The parameters are passed by value and the return value is display on _SCREEN.
>
>But, I can also call it like this
>
>value1 = 12
>value2 = "Hi there"
>DO DoSomething WITH value1, value2
>
>
>Here, it's a procedure. The return value is ignored and the parameters are passed by reference.
>
>Additionally, I can define DoSomething this way and it will still work exactly as before
>
>PROCEDURE DoSomething
>LPARAMETERS param1, param2
>
>* code that does something
>
>RETURN someValue
>
>
>
>
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform