Tag: ASP

More Binary/BitWise Functions for VBScript.

More Binary/BitWise Functions for VBScript.

I decided to write some functions to do left shifts, right shifts, signed right shifts as well as roll lefts and roll rights and more. The thing that I like about these functions is that they will work with Long Integers, Integers and Bytes automatically without the need for separate functions. I think they are […]

05/06/2014 | By | 6 Replies More
Using bit flags and bit-wise operations or converting decimal to binary in ASP/VBScript

Using bit flags and bit-wise operations or converting decimal to binary in ASP/VBScript

Here are a couple of VBScript functions I wrote to easily use a 32 bit long integer as 32 separate Boolean values or “bit flags”. You could also use these functions to convert binary to decimal or decimal to binary or to learn about bit-wise operations.

10/18/2010 | By | 9 Replies More