Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Equals? Why?
Message
De
13/07/2001 11:27:58
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00530280
Message ID:
00530294
Vues:
16
>Hi,
>
>Why is there an equal sign (=) before some commands that I see? For example: i saw an example of the SetFileAttributes API Function. It was like this:
>
>=SetFileAttributes.........
>
>I wrote it using
>
>SetFileAttributes.........
>
>and worked just fine.
>
>What is the diference between them?
>
>TIA
>
>Alonso


In VFP 5 and before, all function calls had to be assigned to something, i.e
lcVar = FunctionName()

If you didn't want the return value, then you could leave out the variable e.g.
= FunctionName()

In VFP 6, the need to assign the return from a function was removed, so now you can just say:
FunctionName()
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform