Comparisons Class
Entisoft Tools 2.0 Object Library
Version 2.0.6 Released 1999/11/14 03:27
<-- Previous || Index || Main || Topics || Next -->Declarations Section, CanBeBoolean Function, CanBeByte Function, CanBeCurrency Function, CanBeDate Function, CanBeDecimal Function, CanBeDouble Function, CanBeInteger Function, CanBeLong Function, CanBeSingle Function, CompareCoerceDataType Function, CompareExactDataType Function, CompareLikeDataType Function, CompareLikeDataTypeFast Function, EqualCoerceDataType Function, EqualExactDataType Function, EqualLikeDataType Function, EqualLikeDataTypeFast Function, IsBetween Function, IsFalse Function, IsFloatingPointDataType Function, IsNumber Function, IsOff Function, IsOn Function, IsTrue Function, IsWholeDataType Function, LikeAnyPattern Function, LikePattern Function, Max2 Function, Max2EqualFast Sub, Min2 Function, Min2EqualFast Sub, StrCompCustom Function, VarTypeFromString Function, VarTypeToLength Function, VarTypeToString Function, VT Function
- Declarations Section
- Can Be Boolean Function
- Determine if the argument can be converted to a Boolean value.
- Can Be Byte Function
- Determine if the argument can be converted to a Byte value.
- Can Be Currency Function
- Determine if the argument can be converted to a Currency value.
- Can Be Date Function
- Determine if the argument can be converted to a Date value.
- Can Be Decimal Function
- Determine if the argument can be converted to a Decimal value.
- Can Be Double Function
- Determine if the argument can be converted to a Double (precision floating-point numeric) value.
- Can Be Integer Function
- Determine if the argument can be converted to an Integer value.
- Can Be Long Function
- Determine if the argument can be converted to a Long (Integer) value.
- Can Be Single Function
- Determine if the argument can be converted to a Single (precision floating-point numeric) value.
- Compare Coerce Data Type Function
- Compare two values to determine if one is less than, equal to, or greater than the other. Attempts to fix-up different types of values to compatible data types.
- Compare Exact Data Type Function
- Compare two values to determine if one is less than, equal to, or greater than the other. Considers the values of all Visual Basic data types to be distinct so that, for example, a Single value of 34.5! would not equal a Double value of 34.5#.
- Compare Like Data Type Function
- Compare two values to determine if one is less than, equal to, or greater than the other. Compares values with similar data types, but never considers strings equal to numbers.
- Compare Like Data Type Fast Function
- Compare two values to determine if one is less than, equal to, or greater than the other. Compares values with similar data types, but never considers strings equal to numbers. Faster version of the CompareLikeDataType function which has more-restrictive argument types.
- Equal Coerce Data Type Function
- Return True if the values vOne and vTwo equal each other, otherwise return False. Attempts to fix-up different types of values to compatible data types.
- Equal Exact Data Type Function
- Return True if the values vOne and vTwo equal each other, otherwise return False. Considers the values of all Visual Basic data types to be distinct so that, for example, a Single value of 34.5! would not equal a Double value of 34.5#.
- Equal Like Data Type Function
- Return True if the values vOne and vTwo equal each other, otherwise return False. Compares values with similar data types, but never considers strings equal to numbers.
- Equal Like Data Type Fast Function
- Return True if the values vOne and vTwo equal each other, otherwise return False. Compares values with similar data types, but never considers strings equal to numbers. Faster version of the EqualLikeDataType function which has more-restrictive argument types.
- Is Between Function
- Return True if vCheck is between vLow and vHigh inclusive. Attempts to fix-up different types of values to compatible data types.
- Is False Function
- Return True if the argument vValue is "False".
- Is Floating Point Data Type Function
- Return True if the data type of the argument is capable of representing floating-point numeric values. Function returns False otherwise. More specifically, it considers the following data types to be floating-point numeric: Currency, Date, Decimal, Double, and Single.
- Is Number Function
- Return True if the data type of the argument is numeric. Function returns False otherwise. More specifically, it considers the following data types numeric: Boolean, Byte, Currency, Date, Double, Integer, Long, and Single.
- Is Off Function
- Return True if the argument vValue is "Off".
- Is On Function
- Return True if the argument vValue is "On".
- Is True Function
- Return True if the argument vValue is "True".
- Is Whole Data Type Function
- Return True if the data type of the argument is limited to representing whole numbers. Function returns False otherwise. More specifically, it considers the following data types to be limited to representing whole numbers: Boolean, Byte, Integer, and Long.
- Like Any Pattern Function
- Return True if any of the LIKE patterns in string vPatterns match the string vSearch.
- Like Pattern Function
- Return True if any of the LIKE pattern in string vPattern matches the string vSearch.
- Max 2 Function
- "Maximum of Two Values" Return the maximum of two arguments. Returns the argument on the left (vOne) if arguments are equal.
- Max 2 Equal Fast Sub
- "Maximum Equal (Fast)" or "Assign Maximum (Fast)" Assign the leftmost argument rOne to the maximum value of the two arguments. Shorthand for rOne = Max(rOne, vTwo)
- Min 2 Function
- "Minimum of Two Values" Return the minimum of two arguments. Returns the argument on the left (vOne) if arguments are equal.
- Min 2 Equal Fast Sub
- "Minimum Equal (Fast)" or "Assign Minimum (Fast)" Assign the leftmost argument rOne to the minimum value of the two arguments. Shorthand for rOne = Min(rOne, vTwo)
- Str Comp Custom Function
- "String Compare Custom" Like the Visual Basic StrComp function, except that it uses a custom sort order/collating sequence. Compare two string values to determine if one is less than, equal to, or greater than the other.
- Var Type From String Function
- "Variable Type From String" or "String To Variable Type" Converts the name of a data type into the VarType value representing that data type.
- Var Type To Length Function
- Returns the number of bytes occupied by variables whose VarType is vVarType.
- Var Type To String Function
- "Variable Type To String" Converts a numeric value returned by the Visual Basic VarType function into a string which names the data type.
- VT Function
- "Value Type" Return the name of the data type of the argument.
This Windows-based ActiveX DLL provides many useful routines through its function-bearing and data structure classes. Consult the Help file for more information, or call us at 1-310-472-3736. For the latest news and files, visit our home page on the World Wide Web: http://www.entisoft.com
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.