VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



CRangeOverlap

by Robert Dee (2 Submissions)
Category: Math/Dates
Compatability: VB 6.0
Difficulty: Intermediate
Originally Published: Sun 22nd January 2017
Date Added: Tue 9th February 2021
Rating: (1 Votes)

This is a small class that deals with determining the overlap or non-overlap of value ranges (x1-x2 vs. y1-y2). It includes the following public interface: IsOverlapped, IsOverlappedV - Returns T/F based on the style of overlap (or non-overlap) you are looking for. IsOverlapped is the integer (byte, short, long) version. IsOverlappedV is the variant version (for Single, Double, Currency and Date). RangePosition, RangePositionV - Returns an Enum that describes the type of overlap or non-overlap between two given ranges of values. Description - a Property Get procedure that returns a brief string description of the type of overlap between two given ranges. InRange, InRangeV - Returns T/F depending on whether a single value falls within a given range.

Rate CRangeOverlap

Download CRangeOverlap

Download CRangeOverlap (3 KB)

CRangeOverlap Comments

No comments have been posted about CRangeOverlap. Why not be the first to post a comment about CRangeOverlap.

Post your comment

Subject:
Message:
0/1000 characters