(Inherits from MfPrimitive)
Represents Signed Byte object
Fields, Properties, Methods, Example
Name |
Description |
|
Initializes a new instance of the MfSByte class optionally setting the Value property, ReturnAsObject property and the Readonly property. |
Name |
Description |
|
Gets the largest possible value of an MfSByte. This field is constant. |
||
Gets the smallest possible value of an MfSByte. This field is constant. |
Name |
Description |
|
Gets the if the derived class will allow the underlying value to be altered after the constructor has been called. Inherited from MfPrimitive. |
||
Gets or sets the if the MfSByte class will return objects as their return value for various functions. Inherited from MfPrimitive |
||
Gets or sets the value associated with the this instance. Overrides MfPrimitive.Value. |
Name |
Description |
|
Adds MfByte value to current instance of MfSByte. |
||
Compares this instance to a specified MfSByte object.. Overrides MfObject.CompareTo() |
||
Divides the current instance of MfSByte by the divisor value. |
||
Gets if this instance Value is the same as the value Overrides MfObject.Equals() |
||
Gets A hash code for the current MfSByte instance. Overrides MfObject.GetHashCode() |
||
Gets the Type for the for the Class .Inherited from MfObject. |
||
Get an enumeration value of MfTypeCode the represents MfSByte Type Code. |
||
Gets the byte number from Object or var containing byte.. Overrides MfPrimitive.GetValue() |
||
Gets a byte number from Obj or returns Default value if Obj is unable to be converted to byte. Default must be a value that can be converted to byte or it will be ignored if Obj can not be converted to byte and an error will be thrown. Overrides MfPrimitive.GetValue() |
||
Gets a byte var from Obj or returns Default value if Obj is unable to be converted to byte.Default can be not boolean if AllowAny is true. Overrides MfPrimitive.GetValue() |
||
Compares the current MfSByte object to a specified MfSByte object and returns an indication of their relative values. |
||
Compares the current MfSByte object to a specified MfSByte object and returns an indication of their relative values. |
||
Compares the current MfSByte object to a specified MfSByte object and returns an indication of their relative values. |
||
Compares the current MfSByte object to a specified MfSByte object and returns an indication of their relative values. |
||
Multiplies the current instance of MfSByte by the value. |
||
Gets if current instance of object is of the same type. Inherited from MfObject. Inherited from MfObject. |
||
Get if the current class is an instance. Inherited from MfObject. |
||
Creates a shallow copy of the current MfObject instance. Inherited from MfObject. |
||
Converts the s representation of a number to its MfSByte equivalent |
||
Converts the s representation of a number to its MfSByte equivalent |
||
Converts the s representation of a number to its MfSByte equivalent |
||
Converts the s representation of a number to its MfSByte equivalent |
||
Subtracts Byte value from current instance of MfSByte. |
||
Gets a string representation of the Value of the object. Overrides MfPrimitive.ToString() |
||
Tries to converts the s representation of a number to its MfSByte equivalent. A return value indicates whether the conversion succeeded. |
||
Tries to converts the s representation of a number to its MfSByte equivalent. A return value indicates whether the conversion succeeded. |
Version 0.4
mfsMsg := new MfString()
mfsMsg.Value := MfString.Format("Please enter a value between {0} and {1}", MfByte.MinValue, MfByte.MaxValue)
UserInput := Mfunc.InputBox("Byte Value", mfsMsg, , 300, 140)
if (ErrorLevel)
{
MsgBox, CANCEL was pressed.
}
else
{
try
{
bValue := new MfSByte(MfSByte.GetValue(UserInput))
MsgBox, 64, Value, % MfString.Format("You entered a value of {0}", bValue)
}
catch
{
MsgBox, 16, Bad Input, The input was not acceptable.
}
}