Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Feature or Bug?
Message
From
12/01/1999 15:18:56
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00175203
Message ID:
00175207
Views:
19
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform