Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change file attribute
Message
From
16/08/2001 12:23:00
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
16/08/2001 12:15:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00544743
Message ID:
00544788
Views:
15
>>Noooo!:-) It's a bad idea. The reason I say this is: If it isn't read-only and you subtract 1, you'll modify the other bits too. Same thing with adding. Further, with the folder object at least, the directory bit is read-only and will error on you. Use the bitwise operators always.
>
>I see. I suppose you need to check the setting first if you want to go this way.
>
>Thanks.

No need to check, AFAIK. BITOR() will set a certain byte, BITAND() will reset it, BITXOR() will toggle it.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform