Class Module
35 Members
Coerce Make Class
Entisoft Tools 2.0 Object Library · CoerceMake · 34 Functions · 0 Properties · 0 Subroutines
Declarations
Declarations
These functions provide alternate interpretations for the bytes that represent a value. Copyright 1998 Entisoft
Section
CoerceToBoolean
Coerce To Boolean
"Coerce String To Boolean" Return the Boolean value whose in-memory representation is the same as the first two characters in string vString.
Function
CoerceToBooleanFast
Coerce To Boolean Fast
"Coerce String To Boolean (Fast)" Return the Boolean value whose in-memory representation is the same as the first two characters in string vString. Faster version of the CoerceToBoolean function which has restrictive argument types (to avoid argument fix-up overhead).
Function
CoerceToByte
Coerce To Byte
"Coerce String To Byte" Return the Byte value whose in-memory representation is the same as the first character in string vString. Inverse of the MakeByte function.
Function
CoerceToByteFast
Coerce To Byte Fast
"Coerce String To Byte (Fast)" Return the Byte value whose in-memory representation is the same as the first character in string vString. Faster version of the CoerceToByte function which has restrictive argument types (to avoid argument fix-up overhead).
Function
CoerceToCurrency
Coerce To Currency
"Coerce String To Currency" Return the Currency value whose in-memory representation is the same as the first eight characters in string vString. Inverse of the MakeCurrency function.
Function
CoerceToCurrencyFast
Coerce To Currency Fast
"Coerce String To Currency (Fast)" Return the Currency value whose in-memory representation is the same as the first eight characters in string vString. Faster version of the CoerceToCurrency function which has restrictive argument types (to avoid argument fix-up overhead).
Function
CoerceToDate
Coerce To Date
"Coerce String To Date" Return the Date value whose in-memory representation is the same as the first eight characters in string vString. Same as the CVD function in earlier versions of Microsoft Basic except that the value is returned as Date instead of a Double. Inverse of the MakeDate function.
Function
CoerceToDateFast
Coerce To Date Fast
"Coerce String To Date (Fast)" Return the Date value whose in-memory representation is the same as the first eight characters in string vString. Similar to the CVD function in earlier versions of Microsoft Basic except that the value is returned as Date instead of a Double. Faster version of the CoerceToDate function which has restrictive argument types (to avoid argument fix-up overhead).
Function
CoerceToDouble
Coerce To Double
"Coerce String To Double" Return the Double value whose in-memory representation is the same as the first eight characters in string vString. Coerce an 8-character string value into a Double precision floating point value. Similar to casting a character string into a double value in the C language. Same as the CVD function in earlier versions of Microsoft Basic. Inverse of the MakeDouble (MKD) function.
Function
CoerceToDoubleFast
Coerce To Double Fast
"Coerce String To Double (Fast)" Return the Double value whose in-memory representation is the same as the first eight characters in string vString. Coerce an 8-character string value into a Double precision floating point value. Similar to casting a character string into a double value in the C language. Similar to the CVD function in earlier versions of Microsoft Basic. Faster version of the CoerceToDouble function which has restrictive argument types (to avoid argument fix-up overhead).
Function
CoerceToInteger
Coerce To Integer
"Coerce String To Integer" Return the Integer value whose in-memory representation is the same as the first two characters in string vString. Same as the CVI function in earlier versions of Microsoft Basic. Inverse of the MakeInteger (MKI) function.
Function
CoerceToIntegerFast
Coerce To Integer Fast
"Coerce String To Integer (Fast)" Return the Integer value whose in-memory representation is the same as the first 2 (two) characters in string vString. Similar to the CVI function in earlier versions of Microsoft Basic. Faster version of the CoerceToInteger function which has restrictive argument types (to avoid argument fix-up overhead).
Function
CoerceToLong
Coerce To Long
"Coerce String To Long" Return the Long (integer) value whose in-memory representation is the same as the first four characters in string vString. Same as the CVL function in earlier versions of Microsoft Basic. Inverse of the MakeLong (MKL) function.
Function
CoerceToLongFast
Coerce To Long Fast
"Coerce String To Long (Fast)" Return the Long value whose in-memory representation is the same as the first 4 (four) characters in string vString. Similar to the CVL function in earlier versions of Microsoft Basic. Faster version of the CoerceToLong function which has restrictive argument types (to avoid argument fix-up overhead).
Function
CoerceToSingle
Coerce To Single
"Coerce String To Single" Return the Single (precision floating-point numeric) value whose in-memory representation is the same as the first four characters in string vString. Same as the CVS function in earlier versions of Microsoft Basic. Inverse of the MakeSingle (MKS) function.
Function
CoerceToSingleFast
Coerce To Single Fast
"Coerce String To Single (Fast)" Return the Single value whose in-memory representation is the same as the first 4 (four) characters in string vString. Similar to the CVS function in earlier versions of Microsoft Basic. Faster version of the CoerceToSingle function which has restrictive argument types (to avoid argument fix-up overhead).
Function
CoerceToVarType
Coerce To Var Type
"Coerce String To Value Of Type" Return the value whose in-memory representation is the same as the corresponding characters in string vString. Applies the appropriate CoerceTo function depending upon the VarType Constant in vVarType.
Function
MakeBoolean
Make Boolean
"Make String From Boolean" or "Coerce Boolean To String" Coerce a Boolean value into a 2-character string. Return the two-character string whose bytes have the same in-memory representation as the Boolean value vValue.
Function
MakeBooleanFast
Make Boolean Fast
"Make String From Boolean (Fast)" or "Coerce Boolean To String" Coerce a Boolean value into a 2-character string. Return the two-character string whose bytes have the same in-memory representation as the Boolean value vValue. Faster version of the MakeBoolean function which has restrictive argument types (to avoid argument fix-up overhead).
Function
MakeByte
Make Byte
"Make String From Byte" or "Coerce Byte To String" Coerce a Byte value into a 1-character string. Return the one-character string whose in-memory representation is same as the Byte value vValue. Inverse of the CoerceToByte function.
Function
MakeByteFast
Make Byte Fast
"Make String From Byte (Fast)" or "Coerce Byte To String (Fast)" Coerce a Byte value into a 1-character string. Return the one-character string whose in-memory representation is same as the Byte value vValue. Faster version of the MakeByte function which has restrictive argument types (to avoid argument fix-up overhead).
Function
MakeCurrency
Make Currency
"Make String From Currency" or "Coerce Currency To String" Coerce a Currency value into an 8-character string. Return an eight-character string containing the in-memory representation of the Currency value vValue. Inverse of the CoerceToCurrency function.
Function
MakeCurrencyFast
Make Currency Fast
"Make String From Currency (Fast)" or "Coerce Currency To String (Fast)" Coerce a Currency value into an 8-character string. Return an eight-character string containing the in-memory representation of the Currency value vValue. Inverse of the CoerceToCurrency function. Faster version of the MakeCurrency function which has restrictive argument types (to avoid argument fix-up overhead).
Function
MakeDate
Make Date
"Make String From Date" or "Coerce Date To String" Coerce a Date value (represented as a Double) into an 8-character string. Return an eight-character string containing the in-memory representation of the Date value vValue. Similar to coercing a double value into character string in the C language. Inverse of the CoerceToDate function.
Function
MakeDateFast
Make Date Fast
"Make String From Date (Fast)" or "Coerce Date To String (Fast)" Coerce a Date value (represented as a Double) into an 8-character string. Return an eight-character string containing the in-memory representation of the Date value vValue. Similar to coercing a double value into character string in the C language. Faster version of the MakeDate function which has restrictive argument types (to avoid argument fix-up overhead).
Function
MakeDouble
Make Double
"Make String From Double" or "Coerce Double To String" Coerce a Double (precision floating-point numeric) value into an 8-character string. Return an eight-character string containing the in-memory representation of the Double value vValue. Similar to coercing a double value into character string in the C language. Same as the MKD function in earlier versions of Microsoft Basic. Inverse of the CoerceToDouble function.
Function
MakeDoubleFast
Make Double Fast
"Make String From Double (Fast)" or "Coerce Double To String (Fast)" Coerce a Double (precision floating-point numeric) value into an 8-character string. Return an eight-character string containing the in-memory representation of the Double value vValue. Similar to coercing a double value into character string in the C language. Faster version of the MakeDouble function which has restrictive argument types (to avoid argument fix-up overhead).
Function
MakeInteger
Make Integer
"Make String From Integer" or "Coerce Integer To String" Coerce an Integer value into a 2-character string. Return a two-character string containing the in-memory representation of the Integer value vValue. Similar to coercing an integer value into character string in the C language. Same as the MKI function in earlier versions of Microsoft Basic. Inverse of the CoerceToInteger function.
Function
MakeIntegerFast
Make Integer Fast
"Make String From Integer (Fast)" or "Coerce Integer To String (Fast)" Coerce an Integer value into a 2-character string. Return a two-character string containing the in-memory representation of the Integer value vValue. Similar to coercing an integer value into character string in the C language. Faster version of the MakeInteger function which has restrictive argument types (to avoid argument fix-up overhead).
Function
MakeLong
Make Long
"Make String From Long" or "Coerce Long To String" Coerce a Long (integer) value into a 4-character string. Return a four-character string containing the in-memory representation of the Long value vValue. Similar to coercing a long integer value into character string in the C language. Same as the MKL function in earlier versions of Microsoft Basic. Inverse of the CoerceToLong function.
Function
MakeLongFast
Make Long Fast
"Make String From Long (Fast)" or "Coerce Long To String (Fast)" Coerce a Long (integer) value into a 4-character string. Return a four-character string containing the in-memory representation of the Long value vValue. Similar to coercing a long integer value into character string in the C language. Faster version of the MakeLong function which has restrictive argument types (to avoid argument fix-up overhead).
Function
MakeSingle
Make Single
"Make String From Single" or "Coerce Single To String" Coerce a Single (precision floating-point numeric) value into a 4-character string. Return a four-character string containing the in-memory representation of the Single value vValue. Similar to coercing a float value into character string in the C language. Same as the MKS function in earlier versions of Microsoft Basic. Inverse of the CoerceToSingle function.
Function
MakeSingleFast
Make Single Fast
"Make String From Single (Fast)" or "Coerce Single To String (Fast)" Coerce a Single (precision floating-point numeric) value into a 4-character string. Return a four-character string containing the in-memory representation of the Single value vValue. Similar to coercing a float value into character string in the C language. Faster version of the MakeSingle function which has restrictive argument types (to avoid argument fix-up overhead).
Function
MakeVarType
Make Var Type
"Make String From Value" or "Coerce Value To String" Return the in-memory representation of any type of value in the form of a string. Applies the appropriate Make function depending upon the type of the value vValue.
Function