Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using == vs =
Message
De
06/11/2015 17:15:41
 
 
À
06/11/2015 16:20:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01627149
Message ID:
01627189
Vues:
73
Tested the speed difference IIRC in vfp6, there == with !datatypes =="C" perf was slightly lower, whereas it was slightly faster with datatype=="C",
and back then vfp was getting new versions, so we used it only with Char/Strings as to be certain a future version would not bark on the code

>Without looking at your code, == is supposed to be just an exact *string* comparison: https://msdn.microsoft.com/en-US/library/3b6st626%28v=vs.80%29.aspx . It's interesting that it "works" - or at least doesn't give errors - if used with other data types. I haven't seen it used for other data types in VFP before, although it is a convention in other languages. You're thinking outside the box ;)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform