Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange problem
Message
From
30/10/2003 10:14:41
 
 
To
30/10/2003 10:11:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00844512
Message ID:
00844513
Views:
17
>here is the code
>
>
>LOCAL LACC_YEAR_AVANT
>LOCAL ACC_YEAR
>
>ACC_YEAR = 2003
>LACC_YEAR_AVANT = 0
>
>
>LACC_YEAR_AVANT = ACC_YEAR - 2
>
>MESSAGEBOX(STR(LACC_YEAR_AVANT))
>
>when i do th messagebox i get -2 but it suppose to be 2001
>
>why ?

Do you have a field called LACC_YEAR_AVANT? because if I run your code you posted I get 2001.
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform