Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Xlsx to xls
Message
De
03/04/2014 10:30:49
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
03/04/2014 10:21:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01597868
Message ID:
01597989
Vues:
50
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]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform