Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Puzzling error
Message
De
04/01/2015 08:46:13
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01612975
Message ID:
01613010
Vues:
49
>I eventually came up to the conclusion that I should have made right from the start that I was not looking at the correct version of the code. Turned out that my code was different than the one saved in Source of Safe. The code was quite strange, though.
>
>The original code used parameter tnSigId and the new version of code had lparameters (tcSigId). The original version of code used that parameter and the new one didn't need the parameter at all (it was left just to make sure that no code would break).
>
>Please note the () and the letter change (from tn to tc). This is quite strange - why would developer introduce change like that, do you know?

In Visual FoxPro, I see no reason to use parentheses for parameters - after a "parameters" or "lparameters" statement, I mean. Perhaps somebody thought (erroneously) that they were needed, since they are part of the syntax in many languages.

The change from "tn" to "tc" probably reflects a belief that the parameter will always, or usually, be of type character.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform