Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: BINTOC's 'S' option and currency value
Message
From
10/04/2005 14:12:07
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01003056
Message ID:
01003229
Views:
19
>Looks like 'S' flag is ignored when used in combination with '8' flag.
? 0h+BINTOC(0.0,"8"), 0h+BINTOC(0.0,"8S")
This should not to be.
VFPT think this as a not sense conversion ?
Why ? Leave to me this choice, please.

>>
>>CLEAR
>>? 0h+BINTOC($0,"8"),0h+BINTOC($0,"8S")
>>? "EXPECTED FALSE :",0h+BINTOC($0,"8")==0h+BINTOC($0,"8S")
>>* Of course, then the next fire a overflow error
>>? CTOBIN(BINTOC($0,"8S"),"YS")
>>* and next return a complement value
>>? CTOBIN(BINTOC($1,"8S"),"YS")
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform