Category: Classic ASP

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 […]

Generate valid GUID’s / UUID’s with ASP/VBScript
I’ve been working on a new ASP website and needed a way to generate valid UUID’s. I searched around a bit but all I could find for ASP were functions that just generate some hex and added a few dashes. They probably would have worked fine but if you’re going to do something you, might […]

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.
Recent Comments