Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Feature or Bug?
Message
De
12/01/1999 15:18:56
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00175203
Message ID:
00175207
Vues:
20
>I just spent ... um ... a long time debugging a problem and found something I think the compiler should complain about, but it did not. There's a line of code in this app as follows:
>
>lnHour = HOUR(DATETIME())--11
>
>Note the two minus signs (--). I typed this in the command window at 12:45 and it returned 23. The expected value is 1. So, is -- a feature? or is that a bug?

Normal behavior - subtracting a negative number results in addition of the number.

>
>Thanks
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform